ShouldSerialize{Property} not working if the method is virtual

public class A { } public class B { public A A { get; set;} public virtual bool ShouldSerializeA() { return false; } } Using version 6.0.2 this fails since the ShouldSerializeA is never called. ...

Id #25421 | Release: None | Updated: Today at 12:05 AM by duggaraju | Created: Today at 12:05 AM by duggaraju

JObject.SelectToken("id", true) throws exceptions even when "id" exists

Sample code: string jsonString = "{\"bookId\":\"1000\"}"; JObject json = JObject.Parse(jsonString); var bookId = json.SelectToken("bookId", true); //Expected result: bookId = "1000" //Actual res...

Id #25420 | Release: None | Updated: Wed at 8:08 PM by brianthompson | Created: Wed at 8:08 PM by brianthompson

XML.LINQ Error in Visual Studio 2013

I am using the latest SDK for Windows Phone 8.1. I just recently updated all my other SDKs to the latest and used NuGet to get the JSON package. The editor is having an error with the library versi...

Id #25407 | Release: None | Updated: Mon at 9:22 PM by eumenhof | Created: Mon at 9:21 PM by eumenhof

Strange decimal xml serialization

When using JsonConvert.DeserializeXNode some decimals (bigger than some value) serialize/deserialize with error. For example 1000000003.14159265358979 serializes to 1000000003.1415926. but 3.1415...

Id #25393 | Release: None | Updated: Apr 15 at 10:53 AM by pil0t | Created: Apr 15 at 10:53 AM by pil0t

conflicting parameter name in a constructor and in a class property

Problem: a class has a property of type of some abstract class marked as JsonObject. At the same time, this class has a constructor with one of the parameters with the same name as property but d...

Id #25389 | Release: None | Updated: Apr 14 at 1:08 AM by AlexeyKostylev | Created: Apr 14 at 12:50 AM by AlexeyKostylev

Unhandled Exception: System.TypeLoadException: Could not load type 'Newtonsoft.Json.Linq.JObject'

Can any one explain me why this exception occurred while linking this to mono in unity ? i am referencing the dll from Json60r1\Bin\Portable40 . which is a portable version (i assuming it for mobil...

Id #25311 | Release: None | Updated: Mar 21 at 12:02 PM by rakesh590 | Created: Mar 21 at 12:02 PM by rakesh590

Add support to DataTableConverter for FloatParseHandling

Could you please add support for JsonSerializerSettings.FloatParseHandling setting to DataTableConverter. Thanks.

Id #25259 | Release: None | Updated: Mar 12 at 12:16 PM by Mike_R | Created: Mar 12 at 12:16 PM by Mike_R

Comments are parsed as JValue-strings

using(var textReader = new StreamReader(stream)) using(var jsonReader = new JsonTextReader(textReader)) return JToken.ReadFrom(jsonReader); If the JSON file starts with a comment then a single...

Id #25170 | Release: None | Updated: Mar 14 at 9:36 AM by Auxilium | Created: Feb 8 at 7:43 PM by Zarat

DateTimeZoneHandling.Utc discards serialized timezone

Hi, JsonSerializer discards timezone information from serialized string, thus deserializes it incorrectly. Assuming that JsonSerializer is parametrized with DateTimeZoneHandling.Utc, it should ser...

Id #25075 | Release: None | Updated: Jan 14 at 1:37 PM by savamura | Created: Jan 14 at 1:37 PM by savamura

System.Reflection.BindingFlags Build Warnings on Windows Phone

Hey there, Really great work on the library. I use it basically everywhere! However, I encountered a build warning when I build my Windows Phone app, something like the following: c:\a\src\extern...

Id #25009 | Release: None | Updated: Jan 27 at 2:15 PM by rufusl | Created: Dec 18, 2013 at 6:16 AM by ChrisKXu