Reputation: 1
I parse json in C, by "json-c/json.h".
I have structure: section: [ {item: {...}, item: {...}, ..., item: {...}} ]
I can get 1 item by:
struct json_object item = json_object_object_get(section, "item");
How I can get count of items, and parse all items?
Upvotes: 0
Views: 37