282 #ifndef ti_utils_json_Json__include 283 #define ti_utils_json_Json__include 303 #define JSON_DEFAULT_SIZE (1024u) 335 const char *templateString, uint16_t templateStringLen);
390 uint16_t maxObjectSize);
434 int16_t
Json_parse(Json_Handle objHandle,
char *jsonText, uint16_t jsonTextLen);
505 int16_t
Json_getValue(Json_Handle objHandle,
const char *pKey,
void *pValue,
506 uint16_t *maxValueSize);
544 int16_t
Json_setValue(Json_Handle objHandle,
const char *pKey,
void *pValue,
575 int16_t
Json_build(Json_Handle objHandle,
char *pJsonText, uint16_t *maxTxtLen);
int16_t Json_setValue(Json_Handle objHandle, const char *pKey, void *pValue, uint16_t valueSize)
Sets the value for the provided key.
int16_t Json_parse(Json_Handle objHandle, char *jsonText, uint16_t jsonTextLen)
This function converts the json text into internal representation.
int16_t Json_getArrayMembersCount(Json_Handle objHandle, const char *pKey)
Retrieve the number of array elements in the provided key.
int16_t Json_getValue(Json_Handle objHandle, const char *pKey, void *pValue, uint16_t *maxValueSize)
This function retrieves value from json.
size_t Json_Handle
Definition: json.h:301
int16_t Json_build(Json_Handle objHandle, char *pJsonText, uint16_t *maxTxtLen)
This function builds the internal json into a text json.
int16_t Json_createTemplate(Json_Handle *templateHandle, const char *templateString, uint16_t templateStringLen)
This function creates internal template from the template text.
int16_t Json_destroyObject(Json_Handle objHandle)
Free the internal json memory.
int16_t Json_createObject(Json_Handle *objHandle, Json_Handle templateHandle, uint16_t maxObjectSize)
This function creates an empty Json object.
int16_t Json_destroyTemplate(Json_Handle templateHandle)
This function frees the internal template memory.