11#define JSON_ARRAY_DELIMITOR "["
12#define JSON_ARRAY_TERMINATOR "]"
13#define JSON_STRING_DELIMITOR "{"
14#define JSON_STRING_TERMINATOR "}"
15#define JSON_STRING_ENTRY_DELIMITOR "\""
16#define JSON_STRING_ENTRY_SEPARATOR ":"
17#define JSON_STRING_PAIR_SEPARATOR ","
void json_parser_free_json_string(json_parser_json_string_s *json_string)
Frees a json string instance.
void json_parser_json_string_put_str_pair(json_parser_json_string_s *json_string, char *key, char *val, uint8_t is_final, uint8_t is_initial)
Puts a JSON key/(string)value pair into a provided json string object;.
void json_parser_json_string_nest(json_parser_json_string_s *json_string, char *key, json_parser_json_string_s *nested_json_string, uint8_t is_initial, uint8_t is_final)
Nests a child JSON string into a parent JSON string.
void json_parser_json_string_put_array_int(json_parser_json_string_s *json_string, uint16_t val, uint8_t is_initial, uint8_t is_final)
Nests a child JSON string into a parent JSON array.
void json_parser_json_string_put_array_object(json_parser_json_string_s *json_string, json_parser_json_string_s *json_object, uint8_t is_initial, uint8_t is_final)
Nests a child JSON string into a parent JSON array.
void json_parser_json_string_put_int_pair(json_parser_json_string_s *json_string, char *key, uint16_t val, uint8_t is_initial, uint8_t is_final)
Puts a JSON key/(integer)value pair into a provided json string object;.
void json_parser_free_json_object(json_parser_json_object_s *json_object)
Frees a parsed json object.
json_parser_json_string_s * json_parser_json_string_new(void)
Creates and initialises a new json string instance.
json_parser_json_object_s * json_parser_parse(char *json_string, uint16_t json_string_len)
Retrieves key/value pairs from a JSON encoded string.
JSON Objects structure object.
json_parser_json_param_s * params
JSON parameter structure object.
JSON String structure object.