Search code examples
jsonsyntaxmodelingflowchart

What is this description language used to explain Json Syntax?


Although I can guess what the folllowing pictorial represents, but could you tell me what is the technical name of this language and how is it read?

]([![enter image description here1

Is there any difference between the inward and outward quarter circles?

Soure: Json


Solution

  • This is simply a representation of EBNF (or BNF) as a railroad diagram. The JSON diagrams are similar to those used to describe the syntax for SQLite.

    These diagrams, as standards (or quasi-standards) were likely produced using Tex, with possibly the PSTricks, pst-node, or PGF/Tikz packages, as mentioned here, for JSON, and here, for SQLite.

    ... how is it read?

    Like a train following the tracks. It's that simple for JSON.

    Railroad diagrams have been used to describe the Pascal and Fortran 77 languages. In these cases, additional complexity comes from shear number of diagrams, but each of the diagrams is as easy to understand as the others. (However, those diagrams were likely hand-drawn or drafted).

    Is there any difference between the inward and outward quarter circles?

    No.