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

compatibility.h

Committer:
mimil
Date:
2012-09-07
Revision:
2:ece3b5c4afed
Parent:
1:6df1d1f1b372

File content as of revision 2:ece3b5c4afed:

#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