JSON Reference

September 8th, 2009 Leave a comment Go to comments

JSON or JavaScript Object Notation is a lightweight data-interchange format. It is language-independent text format. Libraries and utilities for working with JSON format are implemented for many programming languages and scripts. For more information on this subject check http://json.org/.

JSON Data Elements and Structures

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

JSON Value Formats

Element Possible element structures
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
digit digit
digit digits
e e
e+
e-
E
E+
E-
  1. No comments yet.
  1. No trackbacks yet.