Publisher | Orbcreation |
---|---|
File size | 1.17MB |
Number of files | 13 |
Latest version | 1 |
Latest release date | 1970-01-01 12:00:00 |
First release date | 2014-07-11 07:05:20 |
Supported Unity versions | 2018.4.2 or higher |
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
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