A JSON parser for ShiVa using RapidJSON. This open-source C++ plugin can load in a JSON string, parse it, and then deliver the parsed values to your ShiVa game code.
The scope of this plugin only covers loading, parsing and reading, but not writing of JSON data. Therefor the API is very small and easy to use. Usually, there are only 3 steps:
1. call rjson.init(some_number) to initialize
2. call rjson.loadstring (sID, sJSON) to load a string into the plugin to parse it
3. call .getValue, the .has* functions, or .getArraySize to access values inside the JSON data
The plugin comes with its own CSV syntax to get around ShiVa's 13 parameter restriction for C++ communication. Please see the README.md for further instructions.
The demo application includes 3 demos, which showcase the basics of primitive, object and array return, handling edge and error cases, as well as show complex nesting.
Can be compiled for any platform with C++11 support, but this pack only contains precompiled DLLs for Windows 8.1 and up.