-
Notifications
You must be signed in to change notification settings - Fork 1.1k
JSON2Schema
Engelbert Niehaus edited this page Dec 12, 2018
·
15 revisions
The JSON-Editor written by Jeremy Dorn needs a JSON Schema to define the required valid input for the JSON file processed with the editor. The tool json2schema.html runs entirely in the browser and creates a JSON schema.
- Demo: You can start the JSON2Schema tool directly via https://niebert.github.io/JSON2Schema or
- Submit JSON as String with HTML form: you can populate the JSON input via a HTML form submission with the following HTML code in your website.
-
Source Code JSON2Schema as ZIP: Go to JSON2Schema repository on GitHub and download zipped archive. Try on your local computer the
docs/index.html
(just HTML and Javascript - Proof of Concept for JSON2Schema)
<form action="https://niebert.github.io/JSON2Schema/index.html"
method="get" target="_blank">
<textarea name="jsoninput" rows="5" cols="85">
{
"name":"John Miller",
"color":"#3412AB",
"age": 35,
"male": true
}
</textarea>
<br>
<input type="submit">
</form>