C parse json objects with same names

36 Views Asked by At

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?

0

There are 0 best solutions below