Quantcast
Channel: Loop through nested JSON array - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by ramin bakhshpour for Loop through nested JSON array

$
0
0

you need a recursive function.

function iterateTree(object) {  if (!object) { //recursion stop criteria || you need to implement what your stop criteria is     return;  }  //doSomthingWithObject();  iterateTree(object.children);}

I'm sure you figure it out how to use it in java.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>