-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlearn.txt
More file actions
16 lines (15 loc) · 783 Bytes
/
learn.txt
File metadata and controls
16 lines (15 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
JSON grammar is a set of production rules that describes the syntax and structure of JSON documents.
value ::= object | array | string | number | "true" | "false" | "null"
object ::= "{" [ pair ("," pair)* ] "}"
pair ::= string ":" value
array ::= "[" [ value ("," value)* ] "]"
string ::= '"' characters '"'
characters ::= "" | character characters
character ::= "any Unicode character, except for \", \, and control characters" | escape
escape ::= "\" ("\"" | "\\" | "/" | "b" | "f" | "n" | "r" | "t" | "u" hex hex hex hex)
number ::= ["-"] int [frac] [exp]
int ::= "0" | digit1-9 digits
frac ::= "." digits
exp ::= ("e" | "E") ["+" | "-"] digits
digit ::= "0" | digit1-9
digits ::= digit | digit digits