• Stars
    star
    379
  • Rank 113,004 (Top 3 %)
  • Language
    C#
  • License
    MIT License
  • Created almost 13 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

JSON library for .NET 2.0+/SL4+/WP7/WindowsStore with optional support for dynamic and DataContract

SimpleJson

Small and fast JSON library for .NET 2.0+/SL4+/WP7+/Windows Store Apps/Portable Class Library and powershell. Includes support for dynamic in .NET 4.0+/SL4+/Windows Store Apps. Also includes support for DataContract and DataMember.

Using SimpleJson

SimpleJson is not distributed as a compiled binary .dll file but rather as a single .cs file or a powershell module .psm1.

Use nuget to add SimpleJson.cs file to your project.

Install-Package SimpleJson

Supported Platforms

  • .NET 2.0
  • .NET 3.0
  • .NET 3.5 (Client Profile and Full Profile)
  • .NET 4.0 (Client Profile and Full Profile)
  • .NET 4.5
  • Windows 8 Store Apps
  • Silverlight 4
  • Silverlight 5
  • Windows Phone 7.0
  • Windows Phone 7.1 (Mango)
  • Windows Phone 8
  • Portable Class Libraries (PCL)

Note: By default SimpleJson expects System.Linq. If you are targeting older version of .NET framework (.net < 3.0 or WP7.0) you will need to add #define SIMPLE_JSON_NO_LINQ_EXPRESSION.

If you want to use [DataContract], [DataMember(Name = "name")] or [IgnoreDataMember] make sure to add #define SIMPLE_JSON_DATACONTRACT.

If you want to use IReadOnlyCollection<T> and IReadOnlyList<T> make sure to add #define SIMPLE_JSON_READONLY_COLLECTIONS.