JSON macros. More...

Macros

#define JSON_GET_VALUE (context, key) gos_json_context_get_value (context, key, NULL)
Return the value of a JSON key searching from the beginning gos_json_context_get_value()
#define JSON_GET_VALUE_WITH (context, key, token) gos_json_context_get_value (context, key, token)
Return the value of a JSON key searching from the given token gos_json_context_get_value()
#define JSON_STR (token)   token->data.str
Return string value of JSON token.
#define JSON_UINT32 (token)   token->data.uint32
Return uint32_t value of JSON token.
#define JSON_INT32 (token)   token->data.int32
Return int32_t value of JSON token.
#define JSON_UINT64 (token)   token->data.uint64
Return uint64_t value of JSON token.
#define JSON_INT64 (token)   token->data.int64
Return int64_t value of JSON token.
#define JSON_BOOL (token)   token->data.boolean
Return bool value of JSON token.

Detailed Description

JSON macros.