coreJSON
v1.0.0
A parser strictly enforcing the ECMA-404 JSON standard, suitable for microcontrollers
|
|
Go to the documentation of this file.
162 const char * queryKey,
163 size_t queryKeyLength,
166 size_t * outValueLength );
@ JSONNotFound
Query key could not be found in the JSON document.
Definition: core_json.h:43
@ JSONSuccess
JSON document is valid and complete.
Definition: core_json.h:40
@ JSONNullParameter
Pointer parameter passed to a function is NULL.
Definition: core_json.h:44
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
@ JSONIllegalDocument
JSON document is invalid or malformed.
Definition: core_json.h:41
@ JSONBadParameter
Query key is empty, or any subpart is empty, or max is 0.
Definition: core_json.h:45
@ JSONPartial
JSON document is valid so far but incomplete.
Definition: core_json.h:39
@ JSONMaxDepthExceeded
JSON document has nesting that exceeds JSON_MAX_DEPTH.
Definition: core_json.h:42
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