I have this problem: I have a JSON object and I want to iterate on it in a javascript function, but it is composed of other JSON objects. It is, for example:
[
{"id"="1", "result"=[{"name"="Sam","age"="12"},{"sport"="soccer"}]},
{"id"="2", "result"=[{"name"="Paul","age"="43"},{"sport"="basketball"}]}
]
And I would iterate on it to work with values, in this way:
1) on first iteration: I want to work with: "Sam", "12", "soccer"
2) on second iteration: I want to work with: "Paul", "43", "basketball"
and so on.
Can you help me for this problem?