Currently you can't change the JSON tab's data with code:
livecoding.json.data2 = "bob";
This will temporarily change livecoding.json in memory, but if you look at the JSON tab, data2 is not there, the JSON tab was not changed!
If you comment out the above line of js:
// livecoding.json.data2 = "bob";
Then, in memory, it is still set to "bob", you have to go to the json tab, where data2 is still missing, and press space somewhere to get the JSON tab to recompile. Now in memory it is back to data2 being undefined.
Indeed - every time the code gets re-rendered, livecoding will re-interpret all the tab contents. Not sure how to deal with this. Closing for now unless you feel inspired to issue a pull request :) .
Currently you can't change the JSON tab's data with code:
livecoding.json.data2 = "bob";
This will temporarily change livecoding.json in memory, but if you look at the JSON tab, data2 is not there, the JSON tab was not changed! If you comment out the above line of js:
// livecoding.json.data2 = "bob";
Then, in memory, it is still set to "bob", you have to go to the json tab, where data2 is still missing, and press space somewhere to get the JSON tab to recompile. Now in memory it is back to data2 being undefined.