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

Fork of MbedJSONValue by Samuel Mokrani

Files at this revision

API Documentation at this revision

Comitter:
AlexVC97
Date:
Wed Mar 15 07:54:44 2017 +0000
Parent:
4:10a99cdf7846
Commit message:
JSON in mbed

Changed in this revision

MbedJSONValue.cpp Show annotated file Show diff for this revision Revisions of this file
MbedJSONValue.h Show annotated file Show diff for this revision Revisions of this file
--- a/MbedJSONValue.cpp	Thu Sep 22 10:57:37 2011 +0000
+++ b/MbedJSONValue.cpp	Wed Mar 15 07:54:44 2017 +0000
@@ -3,6 +3,9 @@
 # include <stdlib.h>
 # include <stdio.h>
 
+namespace VivesCityGame
+{
+    
 // Clean up
 void MbedJSONValue::clean() {
     switch (_type) {
@@ -242,4 +245,5 @@
     }
     return -1;
 }
+};
 
--- a/MbedJSONValue.h	Thu Sep 22 10:57:37 2011 +0000
+++ b/MbedJSONValue.h	Wed Mar 15 07:54:44 2017 +0000
@@ -98,6 +98,10 @@
  * }
  * @endcode
  */
+ 
+namespace VivesCityGame
+{
+    
 class MbedJSONValue {
 public:
 
@@ -587,5 +591,6 @@
     }
     return in.cur();
 }
+};
 
 #endif // _MbedMbedJSONValue_H_