Json.NET

Popular high-performance JSON framework for .NET

World-class JSON Serializer

Serialize and deserialize any .NET object with Json.NET's powerful JSON serializer.

LINQ to JSON

Create, parse, query and modify JSON using Json.NET's JObject/JArray/JValue objects.

JSON Schema Validation

Validate incoming JSON using JSON Schema. Find out more at json-schema.org.

High Performance

50% faster than DataContractJsonSerailzier, 250% faster than JavaScriptSerializer.

Easy To Use

Json.NET makes the simple easy and the complex possible.

XML Support

If you need it Json.NET supports converting between XML and JSON.

Open Source

Json.NET is open source software and is completely free for commercial use.

Run Anywhere

Json.NET supports Windows, Silverlight, Windows Phone, Mono, MonoTouch and MonoDroid.

Most Popular .NET library

Over 3 million downloads and counting, Json.NET is the number one .NET library on NuGet.

Json.NET Documentation

Json.NET documentation is the first place to go for help. Includes 100 code samples.

Stack Overflow

Stack Overflow has an active Json.NET community and is the best place to ask questions.

Json.NET is a personal open source project. Started in 2006, thousands of hours have been put into refining and tuning Json.NET with the goal to make it not just the best JSON serializer for .NET but the best serializer for any computer language. I need your help to achieve this.

If Json.NET has been helpful to you, consider donating.

Click here to lend your support to: Json.NET and make a donation at www.pledgie.com !

63 Json.NET
21 DataContractJsonSerializer
11 JavaScriptSerializer
Json.NET DataContractJsonSerializer JavaScriptSerializer
Supports JSON      
Supports BSON
     
Supports JSON Schema
     
Supports .NET 2.0
     
Supports .NET 3.5
     
Supports .NET 4.0      
Supports Silverlight      
Supports Windows Phone      
Open Source      
MIT License      
LINQ to JSON      
Thread Safe      
XPath-like JSON query syntax      
Indented JSON support
     
Efficient dictionary serialization      
Nonsensical dictionary serialization      
Deserializes IList, IEnumerable, ICollection, IDictionary properties
     
Serializes circular references
     
Supports serializing objects by reference
     
Deserializes polymorphic properties and collections
     
Supports including type names with JSON      
Globally customize serialization process      
Supports excluding null values when serializing
     
Supports SerializationBinder
     
Conditional property serialization
     
Includes line number information in errors
     
Converts XML to JSON and JSON to XML
     
JSON Schema validation
     
JSON Schema generation from .NET types
     
Camel case JSON property names
     
Non-default constructors support
     
Serialization error handling
     
Supports populating an existing object
     
Efficiently serializes byte arrays as base64 text
     
Handles NaN, Infinity, -Infinity and undefined
     
Handles JavaScript constructors      
Serializes .NET 4.0 dynamic objects
     
Serializes ISerializable objects
     
Supports serializing enums to their text name      
JSON recursion limit support
     
Attribute property name customization      
Attribute property order customization      
Attribute property required customization      
Supports ISO8601 dates      
Supports JavaScript constructor dates      
Supports Microsoft AJAX dates      
Unquoted property names support      
Raw JSON support      
Supports reading and writing comments      
Deserializes anonymous types      
Opt-in property serialization      
Opt-out property serialization      
Efficiently stream reading and writing JSON      
Single or double quote JSON content      
Supports overriding a type's serialization      
Supports OnDeserialized, OnSerializing, OnSerialized and OnDeserializing attributes      
Supports serializing private properties      
DataMember attribute support      
MetdataType attribute support      
DefaultValue attribute support      
Serializes DataSets and DataTables      
Serailizes Entity Framework      
Serializes nHibernate      
Case-insensitive property deserialization      
Performance