http://bugzilla.novell.com/show_bug.cgi?id=573691

http://bugzilla.novell.com/show_bug.cgi?id=573691#c1


--- Comment #1 from Atsushi Enomoto <[email protected]> 2010-01-27 05:10:28 
UTC ---
We indeed has bugs, but not in the form that those tests expect. Let's first
make sure to check the JSON specification before judging blindly that our
implementation is buggy. .NET is a lot buggier than ours on JSON implementation
especially regarding parsing numbers.

>From http://json.org/ :

number
    int
    int frac
    int exp
    int frac exp 
int
    digit
    digit1-9 digits
    - digit
    - digit1-9 digits 
frac
    . digits
exp
    e digits
digits
    digit
    digit digits
e
    e
    e+
    e-
    E
    E+
    E-

The only way that "NaN", "INF" and "-INF" to become valid is, to make them into
a string, not a number. JSON strings must be double-quoted, so raw NaN is
invalid in the context of JSON string either.

On serialization we are also buggy to output NaN, which should be fixed to
output "NaN" (double quoted).

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to