Railroad — JSON Grammar
The json.org grammar as stacked railroad diagrams — the canonical example.
View example and source Edit in StudioNative railroad (syntax) diagrams for grammars, json.org style. One production per block — `rule ::= term | other` — with sequences, stacked `|` choices, `[optional]` bypasses, `{repetition}` loops and `(grouping)`. Quoted terminals render as rounded pills, bare nonterminals as rectangles, and every rule in the document renders as its own stacked diagram. The standard way language and API docs explain syntax.

Most users come to Railroad / syntax diagram from railroad-diagrams (tabatkins), Hand-drawn EBNF figures or bottlecaps.de/rr. flowss runs this engine in the browser — no install, shareable via URL, exportable to PNG / SVG / PDF / source.
value ::= object | array | "true" | "false"
object ::= "{" [ pair { "," pair } ] "}"Paste this in the Studio code pane to see Railroad / syntax diagram render live. The full grammar is at the upstream-docs link above.
The json.org grammar as stacked railroad diagrams — the canonical example.
View example and source Edit in StudioClassic expr / term / factor precedence-climbing grammar for calculators and compilers.
View example and source Edit in StudioSemVer 2.0: major.minor.patch with optional pre-release and build metadata.
View example and source Edit in StudioSimplified URI grammar: scheme, authority, path, optional query and fragment.
View example and source Edit in StudioRecords, fields, and quoted fields with escaped double quotes.
View example and source Edit in StudioCalendar date with optional time, seconds, fraction, and timezone designator.
View example and source Edit in Studiorailroad · ← Browse all engines · Quick-start guide