[Mono-bugs] [Bug 549756] Mono 2.6 Json serialization fails to parse netflix's json

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 17 18:50:31 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=549756#c6

--- Comment #6 from Chris Toshok <toshok at novell.com> 2009-11-17 23:50:30 UTC ---
(In reply to comment #5)
> Created an attachment (id=327813)
 --> (http://bugzilla.novell.com/attachment.cgi?id=327813) [details]
> up-to-date patch + test case (disabled)
> 
> Yes, I'm going to replace current hack with mine. (I'm posting here to ask for
> approval in 2.6 change.)
> 
> I also added a test case that this patch fixes.

the patch includes the following:

public JsonReader (byte [] buffer, int offset, int count, Encoding encoding,
XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose)
{
    SetInput (buffer, offset, count, encoding, quotas, onClose);
+    LameSilverlightLiteralParser = true;
}

public JsonReader (Stream stream, Encoding encoding, XmlDictionaryReaderQuotas
quotas, OnXmlDictionaryReaderClose onClose)
{
    SetInput (stream, encoding, quotas, onClose);
+    LameSilverlightLiteralParser = true;
}

which seems to enable LameSilverlightLiteralParser in all cases, even
non-NET_2_1.  there's a NET_2_1-only block above this code which sets it to
true, so it looks like we don't need those two lines?


-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list