The advantages of JSON as a lightweight, interoperable data format have secured its place as the favored mechanism for serializing and transporting data on the web. However, most applications still benefit from or require validation of client-submitted data. Enter the JSON Schema spec, which lets you describe the structure of JSON data for a particular application, for both documentation and validation purposes.
Though JSON Schema code is by design human-readable, building a complex schema with nested and repeating sections in a text-only editor becomes time consuming and error-prone quickly.
There are several reasons why an enterprise-grade, graphical JSON Schema editor is an asset for developers:
- Graphical view and intelligent entry helpers speed development
- Those new to JSON Schema can rapidly build a schema using the graphical view
- Allows incremental data modeling by which you generate a JSON Schema based on an existing JSON instance
- XML to JSON conversion makes it easy to move between formats as required
Let’s look at each of these ideas more closely and see how they’re implemented in XMLSpy.