The source file that implements the user-facing functions in core_json.h. More...
Functions | |
JSONStatus_t | JSON_Validate (const char *buf, size_t max) |
Parse a buffer to determine if it contains a valid JSON document. More... | |
JSONStatus_t | JSON_Search (char *buf, size_t max, const char *queryKey, size_t queryKeyLength, char separator, char **outValue, size_t *outValueLength) |
Find a key in a JSON object and output the pointer outValue to its value. More... | |
The source file that implements the user-facing functions in core_json.h.
JSONStatus_t JSON_Validate | ( | const char * | buf, |
size_t | max | ||
) |
Parse a buffer to determine if it contains a valid JSON document.
See core_json.h for docs.
Verify that the entire buffer contains exactly one scalar or collection within optional whitespace.
JSONStatus_t JSON_Search | ( | char * | buf, |
size_t | max, | ||
const char * | queryKey, | ||
size_t | queryKeyLength, | ||
char | separator, | ||
char ** | outValue, | ||
size_t * | outValueLength | ||
) |
Find a key in a JSON object and output the pointer outValue
to its value.
See core_json.h for docs.
Handle a nested search by iterating over the parts of the queryKey.