Take the 2-minute tour ×

I am wondering whether the following floating point notation is a valid JSON notation:


or should the exponent notation should be replaced with a decimal notation?

share|improve this question
Follow the railroad tracks at json.org –  user2864740 Oct 24 '13 at 1:04

2 Answers 2

up vote 13 down vote accepted

It is valid according to the format available at json.org as numbers can optionally have a base 10 exponent denoted by an E, uppercase or lowercase, an optional plus or minus, and one or more digits.

image of JSON number format

share|improve this answer

It's perfectly valid, according to RFC 4627 RFC 7159*:






Exponents are permitted to have leading 0s, but not the integer section:

number = [ minus ] int [ frac ] [ exp ]

decimal-point = %x2E       ; .

digit1-9 = %x31-39         ; 1-9

e = %x65 / %x45            ; e E

exp = e [ minus / plus ] 1*DIGIT

frac = decimal-point 1*DIGIT

int = zero / ( digit1-9 *DIGIT )

minus = %x2D               ; -

plus = %x2B                ; +

zero = %x30                ; 0

* The RFC 7159 standard supercedes the RFC 4627 informational memo, however the grammar used remains exactly the same.

share|improve this answer

Your Answer


