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/utility/stringbuffer.h	Mon Aug 27 15:15:45 2012 +0000
+++ b/utility/stringbuffer.h	Tue Aug 28 08:16:29 2012 +0000
@@ -1,55 +1,55 @@
-/*
- * aJson
- * stringbuffer.h
- *
- *  http://interactive-matter.org/
- *
- *  This file is part of aJson.
- *
- *  aJson is free software: you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation, either version 3 of the License, or
- *  (at your option) any later version.
- *
- *  aJson is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *  You should have received a copy of the GNU General Public License
- *  along with aJson.  If not, see <http://www.gnu.org/licenses/>.
- *
- *  Created on: 14.10.2010
- *      Author: marcus
- */
-
-#ifndef STRINGBUFFER_H_
-#define STRINGBUFFER_H_
-
-typedef struct
-{
-  char* string;
-  unsigned int memory;
-  unsigned int string_length;
-} string_buffer;
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-  string_buffer*
-  stringBufferCreate(void);
-
-  char
-  stringBufferAdd(char value, string_buffer* buffer);
-
-  char*
-  stringBufferToString(string_buffer* buffer);
-
-  void
-  stringBufferFree(string_buffer* buffer);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* STRINGBUFFER_H_ */
+/*
+ * aJson
+ * stringbuffer.h
+ *
+ *  http://interactive-matter.org/
+ *
+ *  This file is part of aJson.
+ *
+ *  aJson is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  aJson is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *  You should have received a copy of the GNU General Public License
+ *  along with aJson.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ *  Created on: 14.10.2010
+ *      Author: marcus
+ */
+
+#ifndef STRINGBUFFER_H_
+#define STRINGBUFFER_H_
+
+typedef struct
+{
+  char* string;
+  unsigned int memory;
+  unsigned int string_length;
+} string_buffer;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+  string_buffer*
+  stringBufferCreate(void);
+
+  char
+  stringBufferAdd(char value, string_buffer* buffer);
+
+  char*
+  stringBufferToString(string_buffer* buffer);
+
+  void
+  stringBufferFree(string_buffer* buffer);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* STRINGBUFFER_H_ */