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:
5:dd98cf00ed9b
Parent:
3:fab591fca1e7
--- a/jsmn.h	Tue Aug 02 20:21:04 2016 +0000
+++ b/jsmn.h	Mon Aug 15 22:50:26 2016 +0000
@@ -1,3 +1,16 @@
+/* Author: Faheem Inayat
+ * Created by "Night Crue" Team @ TechShop San Jose, CA
+ *
+ * --- DISCLAIMER ---
+ * This code is a modified version of original JSMN lirary, written by
+ *    *** Serge A. Zaitsev ***
+ * and hosted at https://github.com/zserge/jsmn
+ * Any modification to the original source is not guaranteed to be included
+ * in this version.  As of writing of this file, the original source is 
+ * licensed under MIT License
+ * (http://www.opensource.org/licenses/mit-license.php).
+ */
+
 #ifndef __JSMN_H_
 #define __JSMN_H_
 
@@ -7,10 +20,10 @@
 extern "C"
 {
 #endif
-    /*
-     Modified version of standard jsmn lib ... added a type "JSMN_KEY" and enabled
-     parent-pointers and strict JSON check.
-     */
+/*
+  Modified version of original jsmn lib ... added a type "JSMN_KEY" and enabled
+  parent-pointers and strict JSON check.
+*/
     /**
      * JSON type identifier. Basic types are:
      *  o Object