What you are trying can be achieved through the "Foreach" or "While" loop.
Can you let me know the language you are using to get the JSON response? So I can provide you with docs and examples.