JSON library based on JSMN lib

Dependents:   ATT_WNCInterface_Info WNCInterface_HTTP_example NerfUS-Coord Mbed_Prototype_copy_4_INNO_day_15_6_2017 ... more

C++ JSON wrapper over JSMN lib (https://github.com/zserge/jsmn).

This C++ Class is a set of common tools/procedures as a C++ wrapper over JSMN JSON parser library. It is intended to provide the boiler-plate code, with intentions to reduce code clutter, in more of C++ fashion.

In contrast to original library, Json is intended to work strictly with valid JSON structures. Non-standard JSON structures should result in an error.

This class works explicitly on the indices returned by underlying JSMN library. In the scope of this class, its function parameters, return types, and documentation, the term 'index' will always mean the index of JSMN tokens, parsed by the Json constructor, unless and until explicitly mentioned otherwise.

Revision:
6:c1d2153da4ed
Parent:
5:dd98cf00ed9b
Child:
7:8aa4d0e98eb0
--- a/Json.h	Mon Aug 15 22:50:26 2016 +0000
+++ b/Json.h	Mon Aug 15 22:52:37 2016 +0000
@@ -63,9 +63,9 @@
          small memory footprints, it is not allowed to be passed-by-value.  So
          there is no copy- or default-constructor
 
-         @param jsonString - char string containing JSON data
-         @param length - length of the jsonString
-         @param maxTokens - optional maximum count of Tokens. Default is 32.
+         @param jsonString char string containing JSON data
+         @param length length of the jsonString
+         @param maxTokens optional maximum count of Tokens. Default is 32.
          */
         Json ( const char * jsonString, size_t length, unsigned int maxTokens = 32 );