Commented Issue: 'Newtonsoft.Json 4.5.11' can't be added on a Windows Phone 8...
Attempting to resolve dependency 'Newtonsoft.Json (≥ 4.5.11)'.'Newtonsoft.Json 4.5.11' already installed.'Microsoft.AspNet.SignalR.Client 1.0.1' already installed. Could not install package...
View ArticleNew Post: 4.5.11 to 5.0.3 Breaking Changes?
The release notes against each download. Note that the JSON schema stuff will tend to change. The JSON schema spec hasn't been finalized and is continually changing.
View ArticleCommented Issue: Dictionnary Deserialization Bug with TypeNameHandling [23589]
Using TypeNameHandling in ObjectReding need $type in first property in the json object to read the dictionnaryThis does not work :"Positions": {"Big": {"$type":...
View ArticleCommented Issue: Dictionnary Deserialization Bug with TypeNameHandling [23589]
Using TypeNameHandling in ObjectReding need $type in first property in the json object to read the dictionnaryThis does not work :"Positions": {"Big": {"$type":...
View ArticleNew Post: Json format keyvalues only
Hello How to get the following format using JSON.NET? {"123": "CustomerA","345":"CustomerB","789":"CustomerC" } Currently when I Serialize my object I get the data in the following format [ { Name:...
View ArticleCreated Issue: Issue serializing enums when the enum value is 0. [24204]
This issue occurs in version Newtonsoft.Json.4.5.11 and not in Newtonsoft.Json.4.5.81) Create an enum like this - public enum Status{ Ok, Warning, Error,}2) Use it in a class like below - public class...
View ArticleClosed Issue: Inconsistent handling of XmlQualifiedName [24190]
Using the latest prerelease version 5.0.3, If I serialize an XmlQualified name like this:```var json = JsonConvert.SerializeObject(new XmlQualifiedName("Foo", "urn:foo"));```Produces the following...
View ArticleCommented Issue: Issue serializing enums when the enum value is 0. [24204]
This issue occurs in version Newtonsoft.Json.4.5.11 and not in Newtonsoft.Json.4.5.81) Create an enum like this - public enum Status{ Ok, Warning, Error,}2) Use it in a class like below - public class...
View ArticleClosed Issue: Issue serializing enums when the enum value is 0. [24204]
This issue occurs in version Newtonsoft.Json.4.5.11 and not in Newtonsoft.Json.4.5.81) Create an enum like this - public enum Status{ Ok, Warning, Error,}2) Use it in a class like below - public class...
View ArticleClosed Issue: Add support for ISupportInitialize interface [21269]
So that deserialization calls BeginInit right after constructing the object and before deserializing properties, and EndInit when it's done. This would allow validation for example of the deserialized...
View ArticleReleased: Json.NET 5.0 Release 4 (Apr 25, 2013)
New feature - Added JsonWriter.SetWriteState to support inheritance from JsonWriter implementationsChange - Changed .NET 4.5 portable library and WinRT library to use compiled expressions reflection
View ArticleCreated Release: Json.NET 5.0 Release 4 (Apr 25, 2013)
New feature - Added JsonWriter.SetWriteState to support inheritance from JsonWriter implementationsChange - Changed .NET 4.5 portable library and WinRT library to use compiled expressions reflection
View ArticleCreated Issue: JSON Schema Parser Fails [24208]
The JSON parser (V5.04) cannot handle this JSON (as run in Linqpad):```string data = @"{""payment_methods"":""Amex, Cash, Check, Discover, Mastercard,...
View ArticleCreated Issue: DefaultValueHandling.IgnoreAndPopulate sets null to the...
I found if the json node is provided with the default value in the json string, when in deserialization, the corresponding property will be set to null. Please refer to the following code, public class...
View ArticleUpdated Wiki: Home
Json.NETJson.NET is a popular high-performance JSON framework for .NETFeaturesFlexible JSON serializer for converting between .NET objects and JSON LINQ to JSON for manually reading and writing JSON...
View ArticleUpdated Wiki: Home
Json.NETJson.NET is a popular high-performance JSON framework for .NETFeaturesFlexible JSON serializer for converting between .NET objects and JSON LINQ to JSON for manually reading and writing JSON...
View ArticleCreated Issue: Exception while deserializing DateTime in version 5 [24215]
We used Json.NET 4 to serialize Dictionary<DateTime, string> and save it to database.Now we updated NuGet package to the version 5 and now the software throws an exception:```// from databasevar...
View ArticleCommented Issue: Exception while deserializing DateTime in version 5 [24215]
We used Json.NET 4 to serialize Dictionary<DateTime, string> and save it to database.Now we updated NuGet package to the version 5 and the software throws an exception:```// from databasevar...
View ArticleClosed Issue: DefaultValueHandling.IgnoreAndPopulate sets null to the...
I found if the json node is provided with the default value in the json string, when in deserialization, the corresponding property will be set to null. Please refer to the following code, public class...
View ArticleClosed Issue: Data loss when serializing a large decimal [24183]
Hi,I am trying to serialize a list of objects, which contains decimals some times. When I serialize it using BSON it usually works. In some cases, in particular when serializing large decimal values,...
View Article