- Current Version: 1.1:
- First Published: 2014-07-11T19:05:20Z
- Size: 1229856
- Supported Unity Versions: 4.5.0
SimpleJSON importer
JSON is a lightweight format for communication between your game and a webserver.
Lightweight as it may be, it is still a lot of work to convert JSON data into usable objects in your game. SimpleJSON deals with all this headache for you in the easiest way possible.
- import JSON
- export JSON and XML
- uses Hashtables and ArrayLists
Imports any JSON string into Unity at runtime. The results are formatted as a hierarchy of plain Hashtables and ArrayLists. And it doesn't throw exceptions the very second your JSON isn't 100% according to standards either.
No fancy stuff, no nonsense, just a lightweight importer and a few handy extensions to the existing C# Hashtable and ArrayList classes to easily retrieve information from the data hierarchy.
Import a JSON string:
myHashtable = SimpleJsonImporter.Import(jsonString);
Export a JSON string:
string jsonString = myHashtable.JsonString();
Query the hierarchy
Hashtable bookInfo = myHashtable.GetNodeWithProperty("Author", "George Orwell");
All source code is included and written in C#. There are no DLL's or hidden stuff.
Like all other Orbcreation packages, it has online documentation.
Version 1.1:
Added extra access functions to data members
Updated result view in demo
Now uses default extension methods, compatible with other Orbcreation packages
Add to cart