Search Wiki:
Project Description
The Json.NET library makes working with JSON formatted data in .NET simple. Quickly read and write JSON using the JsonReader and JsonWriter or serialize your .NET objects with a single method call using the JsonSerializer. Json.NET's features include:

- LINQ to JSON
- Lightning fast JsonReader and JsonWriter
- The JsonSerializer for quickly converting your .NET objects to JSON and back again
- Json.NET can optionally produce well formatted, indented JSON for debugging or display
- Attributes like JsonIgnore and JsonProperty can be added to a class to customize how a class is serialized
- Ability to convert JSON to and from XML

Documentation
Quick Starts & API Documentation - http://james.newtonking.com/projects/json/help/

Requirements
Json.NET 2.0 requires .NET 3.5. If you are running .NET 2.0 then use Json.NET 1.3.1.

My Blog
My blog can be found at http://james.newtonking.com where I post news and updates about Json.NET.
Last edited Jun 9 at 10:09 PM  by JamesNK, version 6
Comments
jpmikkers wrote  May 4 at 11:22 AM  
Just a suggestion, but you might want to include a line or two on what JSON is, and what its benefits are.

YYYz wrote  Jun 23 at 2:19 PM  
Hi First I want to say I really appreciate that you have added support for NaN and Infinity, for your JSON implementation.
I have a question about how to convert .NET types directly if I have nested collections in my json string? e.g if I have a string like [3, "somestring",[1,2,3]], and I use
try
{

object oo = JavaScriptConvert.DeserializeObject<ArrayList>(thestring);
int dd = 3;
}
catch(Exception ex)
{
Console.WriteLine(ex.Message);
}
I get exception {"Unexpected end when deserializing array."}, I know it works if I don't pass in ArrayList as the generics type but then I will get a JArray Object and those are cumbersome to work with,because I want to access them as pure .NET objects. and if I remove the inner array from my string so it looks like [3, "somestring"] then it will work. how do you suggest I would? Thanks.

Updating...