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
Diff: compatibility.h
- Revision:
- 0:428cf9a51873
- Child:
- 1:6df1d1f1b372
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compatibility.h Mon Aug 27 15:15:45 2012 +0000 @@ -0,0 +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); + + +#endif \ No newline at end of file