aJson is the attempt to port a complete JSON implementation to Arduino. It is based on the cJSON implementation, reduced in size and removing one or two feature. The current mbed implementation only supports FILE* as input so you will have to use a temporary file for parsing your json input. https://github.com/interactive-matter/aJson

Dependents:   WIZwikiREST20

Revision:
1:6df1d1f1b372
Parent:
0:428cf9a51873
--- a/compatibility.h	Mon Aug 27 15:15:45 2012 +0000
+++ b/compatibility.h	Tue Aug 28 08:16:29 2012 +0000
@@ -1,9 +1,9 @@
-#ifndef COMPAT_AJSON__H
-#define COMPAT_AJSON__H
-
-#define fprintf_P fprintf
-#define PSTR(a) a
-#define strdup(a) strcpy((char*)malloc( strlen(a) + 1),a);
-
-
+#ifndef COMPAT_AJSON__H
+#define COMPAT_AJSON__H
+
+#define fprintf_P fprintf
+#define PSTR(a) a
+#define strdup(a) strcpy((char*)malloc( strlen(a) + 1),a);
+
+
 #endif
\ No newline at end of file