Add function to access items via dot notation

This commit is contained in:
Daniel Schubert
2016-10-06 22:53:05 +02:00
parent 94df772485
commit 77e0e45c71
2 changed files with 22 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ extern cJSON *cJSON_GetArrayItem(cJSON *array,int item);
/* Get item "string" from object. Case insensitive. */
extern cJSON *cJSON_GetObjectItem(cJSON *object,const char *string);
extern int cJSON_HasObjectItem(cJSON *object,const char *string);
extern cJSON *cJSON_GetDotObjectItem(cJSON *object,const char *string);
/* For analysing failed parses. This returns a pointer to the parse error. You'll probably need to look a few chars back to make sense of it. Defined when cJSON_Parse() returns 0. 0 when cJSON_Parse() succeeds. */
extern const char *cJSON_GetErrorPtr(void);