A simple JSON viewer with basic edit capabilities. It has styles similar to Chrome's dev tools, so it's perfect for building dev tools extensions... live example.
Install with NPM
npm i json-view
var JSONView = ;var view = 'example'hello : 'world'doubleClick : 'me to edit'a : nullb : truec : falsed : 1e : nested : 'object'f : 123;// Listen for change eventsview;// Expand recursivelyview;// Inspect window.data on the console and note that it changes with edits.windowdata = viewvalue;
index.html - (don't forget to include the css)
The above will produce the same results as the demo page.