Before I start building out the timeline view for the code animation project, it would be handy to have a JSON editor. That would make it easier to debug different scenarios by editing the document in a JSON format or by copying and pasting in examples.
The JSON editor is just another use of codemirror, where the code is parsed and data bound in realtime.
The only hitch is that when the JSON changes, the file needs to get rebuilt, and sometimes there will be errors. So it needs to show those errors.
Also, I prefer to use
json5 instead of the built-in
JSON, as it’s a more leniant parser.
- Updating JSON settings, like
widthsettings, update the controls immediately. Should it work in other direction too?