TI Utilities API  1.10.00.09
Macros | Typedefs | Functions
json.h File Reference
#include <stdlib.h>
#include <string.h>
#include "json_engine.h"
Include dependency graph for json.h:

Go to the source code of this file.

Macros

#define JSON_DEFAULT_SIZE   (1024u)
 

Typedefs

typedef size_t Json_Handle
 

Functions

int16_t Json_createTemplate (Json_Handle *templateHandle, const char *templateString, uint16_t templateStringLen)
 This function creates internal template from the template text. More...
 
int16_t Json_destroyTemplate (Json_Handle templateHandle)
 This function frees the internal template memory. More...
 
int16_t Json_createObject (Json_Handle *objHandle, Json_Handle templateHandle, uint16_t maxObjectSize)
 This function creates an empty Json object. More...
 
int16_t Json_destroyObject (Json_Handle objHandle)
 Free the internal json memory. More...
 
int16_t Json_parse (Json_Handle objHandle, char *jsonText, uint16_t jsonTextLen)
 This function converts the json text into internal representation. More...
 
int16_t Json_getArrayMembersCount (Json_Handle objHandle, const char *pKey)
 Retrieve the number of array elements in the provided key. More...
 
int16_t Json_getValue (Json_Handle objHandle, const char *pKey, void *pValue, uint16_t *maxValueSize)
 This function retrieves value from json. More...
 
int16_t Json_setValue (Json_Handle objHandle, const char *pKey, void *pValue, uint16_t valueSize)
 Sets the value for the provided key. More...
 
int16_t Json_build (Json_Handle objHandle, char *pJsonText, uint16_t *maxTxtLen)
 This function builds the internal json into a text json. More...
 
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale