circlecell / jsonlint.com

[OLD] Please go to new source, link below.

Home Page:https://github.com/circlecell/jsonlint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leading zeros

amoibos opened this issue · comments

If I you use leading zeros for numbers I'm get false negatives with wrong position and error message of the problem. In my case it was an array with objects which contains key value pairs where the value was a number.

@amoibos The definition of a number does not allow leading zeros.

Take a look at this comment by @finom on a related issue.

I wasn't able to reproduce a misleading error message using data in the format you described.

Sample error case

[
  { "key": 1 },
  { "key": 01 }
]