jedemov2

JSON-Editor Playground

The JSON-Editor Interactive Playground is a playground page where you can test various setups for the OpenSource JSON Schema parser JSON-Editor

Here you can try various predefined examples or create your own schema and JavaScript test setups.

Screenshot

Live version is available here: https://pmk65.github.io/jedemov2/dist/demo.html


If you got a good Schema and/or JavaScript examples that show off some of the more advanced features of JSON-Editor, please post it on the JSON-Editor Interactive Playground GitHub page. I will then evaluate it and add it to the list of available examples. 🚀


About

The JSON-Editor Interactive Playground is a page where you can test various setups for the OpenSource JSON Schema parser JSON-Editor

Here you can try various predefined examples or create your own schema and JavaScript test setups.

Supported Browsers: Chrome, Firefox & Microsoft Edge


The Tabs

The Buttons

Custom JavaScript

In the JavaScript editor, the instance of the form is available in the variable jseditor and the schema and startval (if present) are available in the variable jedata. Also the global instance of the JSON-Editor is available in the variable JSONEditor.

You can add custom JavaScript code above and below the mandatory (readonly) lines.

Special Comments

Two special comment functions are available in the JavaScript editor for creating more complex setups.

For these to be recognized, they MUST be place inside a // comment tag. Examples

// includeJS("https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js")
// includeCSS("https://pmk65.github.io/jedemov2/dist/examples/bloodhound.css")

See the “Typeahead Autocomplete” and “Typeahead Autoprefill” examples for an example of usage.