Minimalist JSON parser and serializer (inspired by picojson). Used by MbedJSONRpc. (Original by Samuel Mokrani)

Dependents:   City_Game_JSON City_Game_JSON

Fork of MbedJSONValue by Samuel Mokrani

Revision:
7:a2fabe322eff
Parent:
6:c21b9ffd9628
--- a/MbedJSONValue.cpp	Thu Nov 24 20:25:42 2016 +0000
+++ b/MbedJSONValue.cpp	Wed Dec 14 17:46:06 2016 +0100
@@ -28,7 +28,7 @@
     _type = TypeNull;
 }
 
-bool MbedJSONValue::hasMember(char * name)
+bool MbedJSONValue::hasMember(const char * name)
 {
     for(int i = 0; i < index_token; i++)
         if( !strcmp(name, (*(token_name[i])).c_str() ))
@@ -190,7 +190,7 @@
             return *(token[i]);
         }
     }
-    
+
     //if the user is not doing something wrong, this code is never executed!!
     return *(new MbedJSONValue());
 }
@@ -242,4 +242,3 @@
     }
     return 0;       // 0 is better than -1 for for-loops
 }
-