How do I iterate over a JSON structure?

I have the following JSON structure:

[{ "id":"10", "class": "child-of-9" }, { "id": "11", "classd": "child-of-10" }]

How do I iterate over it using JavaScript?

1 thought on “How do I iterate over a JSON structure?”

Leave a Comment