Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.8.0
-
Component/s: JsonParser
-
Labels:None
Description
(from mailing list, by Bryce McKinlay)
—
The JSON spec disallows leading zeros in number values, for example:
"record":{ "serial":00001 }
However, since such leading zeros are permitted by Javascript and other, lazier JSON implementations, it is not uncommon to find examples of these in the wild.
This patch adds a Feature.ALLOW_NUMERIC_LEADING_ZEROS, which, when turned on, disables Jackson's checks for leading zeros, allowing such numbers to be parsed.
Hello. It looks like my patch didn't make it into the Jackson 1.7 release. I would like to see this change committed as it would save me a little bit of work each time I update, but I'm sure there are others out there who would be helped by this, too.
Any chance of getting it in to the next version? Thanks!