Json: Difference between revisions

From miki
Jump to navigation Jump to search
Line 2: Line 2:
* [https://www.json.org/ JSON.org]
* [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]

;Tools
* [https://ravilabio.info/notes/unix/jq.html jq] — a command-line tool for manipulating JSON.

== Specification ==
== Specification ==
{|
{|

Revision as of 06:08, 31 March 2023

References

Tools
  • jq — a command-line tool for manipulating JSON.

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