Lines Matching full:name
52 "name": "Jack (\"Bee\") Nimble",
87 cJSON_AddItemToObject(root, "name", cJSON_CreateString("Jack (\"Bee\") Nimble"));
102 Each cJSON has, potentially, a child, siblings, value, a name.
105 The Child has name "name", with value "Jack ("Bee") Nimble", and a sibling:
106 Sibling has type Object, name "format", and a child.
107 That child has type String, name "type", value "rect", and a sibling:
108 Sibling has type Number, name "width", value 1920, and a sibling:
109 Sibling has type Number, name "height", value 1080, and a sibling:
110 Sibling has type False, name "interlace", and a sibling:
111 Sibling has type Number, name "frame rate", value 24
140 which is the "name" of the entry. When I said "name" in the above example, that's "string".
141 "string" is the JSON name for the 'variable name' if you will.
153 char *newprefix=malloc(strlen(prefix)+strlen(item->name)+2);
154 sprintf(newprefix,"%s/%s",prefix,item->name);
166 int callback(const char *name,int type,cJSON *item)
168 if (!strcmp(name,"name")) { /* populate name */ }
169 else if (!strcmp(name,"format/type") { /* handle "rect" */ }
170 else if (!strcmp(name,"format/width") { /* 800 */ }
171 else if (!strcmp(name,"format/height") { /* 600 */ }
172 else if (!strcmp(name,"format/interlace") { /* false */ }
173 else if (!strcmp(name,"format/frame rate") { /* 24 */ }