Type Description
Integer Digits 1-9, 0 and positive or negative
Fraction Fractions like 0.3, 3.9
Exponent Exponent like e, e+, e-, E, E+, E

#Examples

{
  "positive" : 12,
  "negative" : -1,
  "fraction" : 10.25,
  "exponent" : 1.0E+2,
  "zero" : 0
}

#Invalid Number

{ "foo": 0xFF }

In JSON you can use only Decimal Literals

Comments