docson
docson copied to clipboard
docson support for submitting structure instead of file path
Hello all,
What I can see so far is that I can submit a file path that the internals of docson will fetch and display. That's nice, but what if I wanted to operate on plain JSON code instead of JSON files? For example, if I wanted to combine an online editor with docson - that'd be awesome, indeed! (I'd use it in my http://json-schema-faker.js.org/ straight away)
So my question is - is is possible to use docson from JS code level, execute a function on a JSON object so that docson would generate DOM for that?