Schema validation and other goodies for JSON data
JavaScript Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
js
python
.gitignore
README.md
TODO
example.js
plugin.schema.js

README.md

JSON-Shapes

JSON-Shapes describe how to

  • validate your data
  • render your data
  • construct user interfaces for manipulating your data
  • merge your data
  • refactor your data

all with a single, simple syntax.

Syntax

JSON-Shapes are polyglot programs, simultaneously valid when read as any one of

  • a slight extension of JSON itself
  • Javascript source code
  • Python source code

The extensions to JSON are the addition of a function-call-like form to the language:

identifier(value, value, ...)

the addition of definitions:

identifier = value;

and support for multiple definitions in a single file.

Example

...