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

Files at this revision

API Documentation at this revision

Comitter:
dwini
Date:
Wed Aug 24 19:11:59 2016 +0000
Parent:
4:10a99cdf7846
Child:
6:c21b9ffd9628
Commit message:
Change return value of size() to 0 in case of empty string or array. Much better for for-loops and such.

Changed in this revision

MbedJSONValue.cpp 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 Aug 24 19:11:59 2016 +0000
@@ -240,6 +240,6 @@
         default:
             break;
     }
-    return -1;
+    return 0;       // 0 is better than -1 for for-loops
 }