168 size_t * outValueLength );
176#define MAX_INDEX_VALUE ( 0x7FFFFFF7 )
JSONStatus_t JSON_Search(char *buf, size_t max, const char *query, size_t queryLength, char **outValue, size_t *outValueLength)
Find a key or array index in a JSON document and output the pointer outValue to its value.
Definition: core_json.c:1573
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:1123
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