Incorrect libraries installed from NuGet package for PCL

I got problems with the latest version 6.0.8 on Windows 8.1 and Windows Phone 8.1, when using JSON.NET as NuGet package in a PCL library targeting Windows 8.1 and Windows Phone 8.1. The assembly be...

Id #25941 | Release: None | Updated: Fri at 9:30 AM by Will_o_Wisp | Created: Fri at 9:29 AM by Will_o_Wisp

SerializeXmlNode() modifies content if quote is present?

SerializeXmlNode() incorrectly converts the XML content with quotes. It does two modifications: 1) existing quotes are escaped to ' \" ' (slash + quote). 2) the whole resulting string is wrapped in...

Id #25936 | Release: None | Updated: Jan 21 at 6:51 PM by avprokofyev | Created: Jan 21 at 4:00 PM by alaudo

How to handle long integers in DeserializeXmlNode()?

We are getting an InvalidCastException when we try to deserialize the following JSON with long integer number: var json = "{ \"DocumentId\" : 13779965364495889899 }"; JsonConvert.DeserializeXmlNo...

Id #25932 | Release: None | Updated: Jan 21 at 6:51 PM by avprokofyev | Created: Jan 21 at 12:46 AM by alaudo

Medium trust support is broken after 6.0.3

When I replace v6.0.3 of Newtonsoft.Json.dll with a newer version (also checked latest v6.0.8) in a working project, the same code bombs out under partial trust. Here is an example stack trace: [Se...

Id #25931 | Release: None | Updated: Jan 20 at 12:19 PM by gtdev | Created: Jan 20 at 12:19 PM by gtdev

Inconsistent behavior in JsonConvert.DeserializeObject<Hashtable>

Deserializing a Hashtable containing empty string elements in the JSON will produce empty string C# values, until a similar object is serialized, after which deserializing the same JSON will produc...

Id #25919 | Release: None | Updated: Jan 15 at 11:17 PM by tnorrisvnc | Created: Jan 15 at 11:17 PM by tnorrisvnc

DataContract attribute incorrectly inherited

There was a discussion for this here https://json.codeplex.com/discussions/357850 A type deriving from a type decorated with the [DataContract] attribute causes Json.NET to assume opt in serializa...

Id #25889 | Release: None | Updated: Dec 26, 2014 at 11:22 AM by fbrooke | Created: Dec 26, 2014 at 11:22 AM by fbrooke

[JValue] Reference to type 'System.IConvertible' not found

There seems to be some compile-time warning when using JValue in Windows Phone 8.1 application (Windows Store) in Visual Studio 2013. Whenever using the constructor of JValue, I get warning: "Warn...

Id #25853 | Release: None | Updated: Dec 4, 2014 at 2:27 PM by kamenlitchev | Created: Dec 4, 2014 at 2:24 PM by kamenlitchev

JArray.Values<UInt64> doesn't work with values larger than an Int32

foreach(UInt64 value in JArray.Parse("[ 18446744073709551615]").Values<UInt64>()) { Console.WriteLine(value); } Object must implement IConvertible. mscorlib.dll!System.Convert.ChangeType(object va...

Id #25836 | Release: None | Updated: Nov 25, 2014 at 11:52 PM by jpribele | Created: Nov 25, 2014 at 11:52 PM by jpribele

Deserialization of invalid date error does not include position information when using IsoDateTimeConverter

If a date is read with an invalid format, the error message does not include any information about the position of the error. Using this model: class TestModel { [Newtonsoft.Json.JsonConverter...

Id #25829 | Release: None | Updated: Nov 17, 2014 at 11:22 AM by colinbreame | Created: Nov 17, 2014 at 11:22 AM by colinbreame

JsonConvert.DeserializeXNode not available for WP8.1 anymore?

I updated Json.Net from 6.0.3 to 6.0.6 today and found that JsonConvert.DeserializeXNode is not available for WP8.1 anymore, but is still working in my WinRT background task and Windows app. Do I ...

Id #25828 | Release: None | Updated: Nov 16, 2014 at 3:18 PM by sibbl | Created: Nov 16, 2014 at 3:18 PM by sibbl