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
compatibility.h@0:428cf9a51873, 2012-08-27 (annotated)
- Committer:
- mimil
- Date:
- Mon Aug 27 15:15:45 2012 +0000
- Revision:
- 0:428cf9a51873
- Child:
- 1:6df1d1f1b372
[mbed] converted /Trash/aJSON
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mimil | 0:428cf9a51873 | 1 | #ifndef COMPAT_AJSON__H |
mimil | 0:428cf9a51873 | 2 | #define COMPAT_AJSON__H |
mimil | 0:428cf9a51873 | 3 | |
mimil | 0:428cf9a51873 | 4 | #define fprintf_P fprintf |
mimil | 0:428cf9a51873 | 5 | #define PSTR(a) a |
mimil | 0:428cf9a51873 | 6 | #define strdup(a) strcpy((char*)malloc( strlen(a) + 1),a); |
mimil | 0:428cf9a51873 | 7 | |
mimil | 0:428cf9a51873 | 8 | |
mimil | 0:428cf9a51873 | 9 | #endif |