Json: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
== References ==
== References ==
* [https://www.json.org/ JSON.org]
* [http://seriot.ch/parsing_json.php Parsing JSON is a Minefield]
* [http://seriot.ch/parsing_json.php Parsing JSON is a Minefield]
== Specification ==

{|
{|
|-
|-
|width=20%|
|
<source lang="text">
<source lang="text">
object
object
Line 21: Line 22:
value , elements
value , elements
</source>
</source>
|width=20%|
|
<source lang="text">
<source lang="text">
value
value
Line 31: Line 32:
false
false
null
null

string
string
""
""
Line 39: Line 39:
char chars
char chars
</source>
</source>
|width=20%|
|
<source lang="text">
<source lang="text">
char
char
Line 54: Line 54:
\t
\t
\u four-hex-digits
\u four-hex-digits
</source>
|width=20%|
<source lang="text">
number
number
int
int
Line 59: Line 62:
int exp
int exp
int frac exp
int frac exp
</source>
|
<source lang="text">
int
int
digit
digit
Line 69: Line 69:
frac
frac
. digits
. digits
</source>
|width=20%|
<source lang="text">
exp
exp
e digits
e digits

Revision as of 08:23, 27 June 2018

References

Specification

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" }