162 const char * queryKey,
163 size_t queryKeyLength,
166 size_t * outValueLength );
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.
Definition: core_json.c:1325
JSONStatus_t JSON_Validate(const char *buf, size_t max)
Parse a buffer to determine if it contains a valid JSON document.
Definition: core_json.c:1094
JSONStatus_t
Return codes from coreJSON library functions.
Definition: core_json.h:38
@ JSONNotFound
Query key could not be found in the JSON document.
Definition: core_json.h:43
@ JSONIllegalDocument
JSON document is invalid or malformed.
Definition: core_json.h:41
@ JSONSuccess
JSON document is valid and complete.
Definition: core_json.h:40
@ JSONBadParameter
Query key is empty, or any subpart is empty, or max is 0.
Definition: core_json.h:45
@ JSONMaxDepthExceeded
JSON document has nesting that exceeds JSON_MAX_DEPTH.
Definition: core_json.h:42
@ JSONNullParameter
Pointer parameter passed to a function is NULL.
Definition: core_json.h:44
@ JSONPartial
JSON document is valid so far but incomplete.
Definition: core_json.h:39