JSON, malformed numeric literal
-
Friday, August 10, 2012 7:08 PM
I get a json exception "Malformed numeric literal..." when parsing JSON with the exponent notation:
"Data":[-1.17453E-08,0.08631]
-1.17453E-08 is a valid JSON number, no?
while(true){
All Replies
-
Friday, August 10, 2012 11:37 PM
Hi soothing,
Yes the definitely is a bug. The JSON grammar allows the exponent to start with leading zeros, however we currently are not allowing them. I'll make sure it gets fixed for a future release. Thanks for taking the time to report the issue to us.
Let us know if you have any other questions or issues.
Steve
- Proposed As Answer by Steven GatesMicrosoft Employee Friday, August 10, 2012 11:37 PM
- Marked As Answer by soothing Monday, August 13, 2012 4:14 PM
-
Monday, August 13, 2012 4:14 PM
Thank you for the quick feedback. The following info may help the bug:
The source of the zero padded exponent was System.Web.Script.Serialization.JavaScriptSerializer (in a separate application).
while(true){

