Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tools for describing JSON schemas

I'm writing a spec and need to describe some JSON objects. Big JSONs tend to get too confusing with text and tabs alone. Is there any online (preferably) tool to create diagrams like the ones on http://www.json.org/ or http://www.sqlite.org/lang_altertable.html. They use them to describe syntax, but, is there anything like it to describe JSON objects ? They are great to represent objects that are required, optional, arrays, etc.

like image 646
alanboy Avatar asked Sep 07 '11 10:09

alanboy


1 Answers

These types of syntax diagrams are known as "railroad diagrams".

There is an online tool at http://bottlecaps.de/rr/ui that you can use to generate tour own diagrams. You must specify your grammar in EBNF notation.

like image 108
Eamonn O'Brien-Strain Avatar answered Sep 20 '22 14:09

Eamonn O'Brien-Strain