pd278115
pd278115

Reputation: 1

C parse json objects with same names

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

Answers (0)

Related Questions