|
Contiki-NG
|
Go to the documentation of this file.
43#define JSON_TYPE_ARRAY '['
44#define JSON_TYPE_OBJECT '{'
45#define JSON_TYPE_PAIR ':'
46#define JSON_TYPE_PAIR_NAME 'N'
47#define JSON_TYPE_STRING '"'
48#define JSON_TYPE_UINT 'U'
49#define JSON_TYPE_INT 'I'
50#define JSON_TYPE_NUMBER '0'
51#define JSON_TYPE_ERROR 0
53/* how should we handle null vs false - both can be 0? */
54#define JSON_TYPE_NULL 'n'
55#define JSON_TYPE_TRUE 't'
56#define JSON_TYPE_FALSE 'f'
58#define JSON_TYPE_CALLBACK 'C'
60/* integer pointer types */
61#define JSON_TYPE_S8PTR 'b'
62#define JSON_TYPE_U8PTR 'B'
63#define JSON_TYPE_S16PTR 'w'
64#define JSON_TYPE_U16PTR 'W'
65#define JSON_TYPE_S32PTR 'd'
66#define JSON_TYPE_U32PTR 'D'
71 JSON_ERROR_UNEXPECTED_ARRAY,
72 JSON_ERROR_UNEXPECTED_END_OF_ARRAY,
73 JSON_ERROR_UNEXPECTED_OBJECT,
74 JSON_ERROR_UNEXPECTED_END_OF_OBJECT,
75 JSON_ERROR_UNEXPECTED_STRING
78#define JSON_CONTENT_TYPE "application/json"