Browsable JSON Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: markup/textual/json/concrete/zaytsev/extracted
Source used for this grammar: Vadim Zaytsev, language::JSON, November 2012 [Explore]

Summary

Syntax

JSONObject ::=
	"{" {JSONKeyValue ","}* "}"
JSONData ::=
	JSONBasicType
JSONBasicType ::=
	JSONString
JSONBasicType ::=
	JSONNull
JSONBasicType ::=
	JSONBoolean
JSONBasicType ::=
	JSONNumber
JSONBasicType ::=
	JSONArray
JSONBasicType ::=
	JSONObject
JSONBoolean ::=
	"false"
JSONBoolean ::=
	"true"
JSONArray ::=
	"[" {JSONBasicType ","}* "]"
JSONNumber ::=
	"-"? Digits ("." Digits)?
JSONNull ::=
	"null"
JSONKeyValue ::=
	[key]::JSONBasicType ":" [val]::JSONBasicType
JSONString ::=
	DoubleQuotedString

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []