Click or drag to resize
Json.NETSamples
 

Over 100 code samples covering Json.NET's most commonly used functionality.

Samples
  • Serializing JSON - Serializing and deserializing JSON, serializer settings and serialization attributes

  • LINQ to JSON - Parsing, querying, modifying and writing JSON

  • JSON Schema - Loading schemas and validating JSON. Note that JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.

  • Converting XML - Converting JSON to XML and XML to JSON

  • BSON - Serializing and deserializing BSON

  • Reading and Writing JSON - Reading JSON with JsonTextReader, writing JSON with JsonTextWriter