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

Committer:
mimil
Date:
Fri Sep 07 09:30:33 2012 +0000
Revision:
2:ece3b5c4afed
Parent:
0:428cf9a51873
update to last git version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mimil 0:428cf9a51873 1 /*
mimil 0:428cf9a51873 2 * aJson
mimil 0:428cf9a51873 3 * streamhelper.h
mimil 0:428cf9a51873 4 *
mimil 0:428cf9a51873 5 * http://interactive-matter.org/
mimil 0:428cf9a51873 6 *
mimil 0:428cf9a51873 7 * This file is part of aJson.
mimil 0:428cf9a51873 8 *
mimil 0:428cf9a51873 9 * aJson is free software: you can redistribute it and/or modify
mimil 0:428cf9a51873 10 * it under the terms of the GNU General Public License as published by
mimil 0:428cf9a51873 11 * the Free Software Foundation, either version 3 of the License, or
mimil 0:428cf9a51873 12 * (at your option) any later version.
mimil 0:428cf9a51873 13 *
mimil 0:428cf9a51873 14 * aJson is distributed in the hope that it will be useful,
mimil 0:428cf9a51873 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
mimil 0:428cf9a51873 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
mimil 0:428cf9a51873 17 * GNU General Public License for more details.
mimil 0:428cf9a51873 18 * You should have received a copy of the GNU General Public License
mimil 0:428cf9a51873 19 * along with aJson. If not, see <http://www.gnu.org/licenses/>.
mimil 0:428cf9a51873 20 *
mimil 0:428cf9a51873 21 * Created on: 10.10.2010
mimil 0:428cf9a51873 22 * Author: marcus
mimil 0:428cf9a51873 23 */
mimil 0:428cf9a51873 24
mimil 0:428cf9a51873 25 #ifndef STREAMHELPER_H_
mimil 0:428cf9a51873 26 #define STREAMHELPER_H_
mimil 0:428cf9a51873 27
mimil 0:428cf9a51873 28 #include <stdlib.h>
mimil 0:428cf9a51873 29
mimil 0:428cf9a51873 30 #ifdef __cplusplus
mimil 0:428cf9a51873 31 extern "C"
mimil 0:428cf9a51873 32 {
mimil 0:428cf9a51873 33 #endif
mimil 0:428cf9a51873 34 /*FILE*
mimil 0:428cf9a51873 35 openStringInputStream(char* string);
mimil 0:428cf9a51873 36 void
mimil 0:428cf9a51873 37 closeStringInputStream(FILE* stream);
mimil 0:428cf9a51873 38 FILE*
mimil 0:428cf9a51873 39 openStringOutputStream(void);
mimil 0:428cf9a51873 40 char*
mimil 0:428cf9a51873 41 closeStringOutputStream(FILE* stream);*/
mimil 0:428cf9a51873 42
mimil 0:428cf9a51873 43 #ifdef __cplusplus
mimil 0:428cf9a51873 44 }
mimil 0:428cf9a51873 45 #endif
mimil 0:428cf9a51873 46 #endif /* STREAMHELPER_H_ */