AWS IoT for ESP32 v1.0.0
An ESP-IDF based solution
|
JSON library header file. More...
Go to the source code of this file.
Data Structures | |
struct | tagStructure_st |
A structure to represent key-value pairs in a JSON string. More... | |
struct | jsonArray_st |
A structure to represent array of JSON objects. More... | |
Functions | |
bool | JSON_processString (const char *pJsonStr, const tagStructure_st tags[], uint8_t maxKeys_u8) |
Extract the key-value pairs sepcified by tags from a give JSON string. More... | |
uint8_t | JSON_processArrayObjs (char *pJsonStr, jsonArray_st *jsnArrPtr) |
Extract an array of JSON objects from given JSON string. More... | |
JSON library header file.
uint8_t JSON_processArrayObjs | ( | char * | pJsonStr, |
jsonArray_st * | jsnArrPtr | ||
) |
Extract an array of JSON objects from given JSON string.
[in] | pJsonStr | The JSON strong |
[in,out] | jsnArrPtr | An array of JSON objects |
true | on success |
false | on failure |
bool JSON_processString | ( | const char * | pJsonStr, |
const tagStructure_st | tags[], | ||
uint8_t | maxKeys_u8 | ||
) |
Extract the key-value pairs sepcified by tags from a give JSON string.
[in] | pJsonStr | The JSON string |
[in,out] | tags | An array of key-value pairs to be extracted |
[in] | maxKeys_u8 | The maximum number of keys to be extracted |
true | on success |
false | on failure |