You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These three examples all raise JSON parsing exceptions:
JSJsonParser parse: (Float infinity asJson).
JSJsonParser parse: ((Float infinity * -1) asJson).
JSJsonParser parse: (Float nan asJson).
There is no way to represent these Float values as-is in JSON. The stringify
function in the JSON object specified in ECMA-262 section 15.12.3 simply
outputs them as “null”, as explained in Note 4 in that section: “Finite
numbers are stringified as if by calling ToString(number). NaN and Infinity
regardless of sign are represented as the String null.” See
http://ecma-international.org/ecma-262/5.1/#sec-15.12.3
Original issue reported on code.google.com by k...@yesplan.be on 8 Jun 2012 at 9:55
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
k...@yesplan.be
on 8 Jun 2012 at 9:55The text was updated successfully, but these errors were encountered: