A .Net library to handle conversions from and to JSON (JavaScript Object Notation) strings. This fork has been edited specificity for use with Unity3D.
Originally created by lbv.
Simply pull the repo and open the .unitypackage to import the library.
This is free and unencumbered software released into the public domain.
For more information, please refer to http://unlicense.org/.
For general examples, check out /Docs/Quickstart/guide.md in this repo, there is also a simple example included in the Unity package.
The LitJson csproj can be used to compile a dll and run the tests. If you intend to use the library in your Unity3D project I recommend you import the uncompiled source as there are some #if directives in Platform.cs that help make the library work on WinRT (and possibly other platforms in the future).
Compiler Directives
JSON_STANDALONE // Compile without Unity3D dependencies.
JSON_WINRT // Compile with WinRT compatibility fix. This will
// force compilation in Unity3D even if UNITY_METRO
// is false. It is recommended you only use this if
// you are using JSON_STANDALONE and are building
// for WindowsRT
This library comes with a set of unit tests using the NUnit framework.
- Remove the static writer and just create a new private one each time instead (eliminates need for global lock).
- Add more error checks for type hinting.
- Add full XMLDocs to public interfaces.
- Try to get custom importers/exporters working recursively.
- README.md needs more information and examples.
- Fix unit tests that cause mono to crash (something with Enums I think).