123

Files at this revision

API Documentation at this revision

Comitter:
m_ahsan
Date:
Mon Apr 29 07:23:24 2019 +0000
Parent:
5:93f9fd1ed417
Commit message:
123

Changed in this revision

MbedJSONValue.h Show annotated file Show diff for this revision Revisions of this file
diff -r 93f9fd1ed417 -r 9663229e5b23 MbedJSONValue.h
--- a/MbedJSONValue.h	Fri Nov 30 09:48:15 2018 +0000
+++ b/MbedJSONValue.h	Mon Apr 29 07:23:24 2019 +0000
@@ -435,7 +435,7 @@
 
 inline bool _parse_string(MbedJSONValue& out, input& in) {
 #ifdef DEBUG
-    //printf("string detected\r\n");
+    printf("string detected\r\n");
 #endif
     out = MbedJSONValue(std::string(""));
     std::string& s = out.get<std::string>();
@@ -472,7 +472,7 @@
 
 inline bool _parse_array(MbedJSONValue& out, input& in) {
 #ifdef DEBUG
-    //printf("array detected\r\n");
+    printf("array detected\r\n");
 #endif
     int i = 0;
     if (in.expect(']')) {
@@ -489,7 +489,7 @@
 
 inline bool _parse_object(MbedJSONValue& out, input& in) {
 #ifdef DEBUG
-    //printf("object detected\r\n");
+    printf("object detected\r\n");
 #endif
     if (in.expect('}')) {
         return true;
@@ -499,7 +499,7 @@
         if (in.expect('"') && _parse_string(key, in) && in.expect(':') && _parse(val, in)) {
             out[key.get<std::string>().c_str()] = val;
 #ifdef DEBUG
-            //printf("key: %s \r\n", key.get<std::string>().c_str());
+            printf("key: %s \r\n", key.get<std::string>().c_str());
 #endif
         } else {
             return false;
@@ -510,7 +510,7 @@
 
 inline bool _parse_number(MbedJSONValue& out, input& in) {
 #ifdef DEBUG
-    //printf("number detected\r\n");
+    printf("number detected\r\n");
 #endif
     std::string num_str;
     while (1) {
@@ -564,6 +564,7 @@
 }
 
 inline std::string parse(MbedJSONValue& out, const char * pos) {
+    printf("In parsing function\n");
     const char * last = pos + strlen(pos);
     std::string err;
     pos = parse(out, pos, last, &err);