Json: Difference between revisions

From miki
Jump to navigation Jump to search
(Created page with "== JSON query == Example of query: <source lang="json"> { "name" : "my_beautiful_project" } </source>")
 
No edit summary
Line 1: Line 1:
== References ==
* [http://seriot.ch/parsing_json.php Parsing JSON is a Minefield]

{|
|-
|
<source lang="text">
object
{}
{ members }
members
pair
pair , members
pair
string : value
array
[]
[ elements ]
elements
value
value , elements
</source>
|
<source lang="text">
value
string
number
object
array
true
false
null

string
""
" chars "
chars
char
char chars
</source>
|
<source lang="text">
char
any-Unicode-character-
except-"-or-\-or-
control-character
\"
\\
\/
\b
\f
\n
\r
\t
\u four-hex-digits
number
int
int frac
int exp
int frac exp
</source>
|
<source lang="text">
int
digit
digit1-9 digits
- digit
- digit1-9 digits
frac
. digits
exp
e digits
digits
digit
digit digits
e
e
e+
e-
E
E+
E-
</source>
|}

== JSON query ==
== JSON query ==
Example of query:
Example of query:

Revision as of 08:18, 27 June 2018

References

object
    {}
    { members } 
members
    pair
    pair , members
pair
    string : value
array
    []
    [ elements ]
elements
    value
    value , elements
value
    string
    number
    object
    array
    true
    false
    null

string
    ""
    " chars "
chars
    char
    char chars
char
    any-Unicode-character-
        except-"-or-\-or-
        control-character
    \"
    \\
    \/
    \b
    \f
    \n
    \r
    \t
    \u four-hex-digits 
number
    int
    int frac
    int exp
    int frac exp
int
    digit
    digit1-9 digits
    - digit
    - digit1-9 digits 
frac
    . digits
exp
    e digits
digits
    digit
    digit digits
e
    e
    e+
    e-
    E
    E+
    E-

JSON query

Example of query:

{ "name" : "my_beautiful_project" }