I have a structure like this
[
{"id": "as2is0", "replies": [{"id": "e345k2e", "replies": [. . .]} ]},
{"id": "2ishkl8"}
] . . .
where it is hard to predict how many replies a comment has. I basically want to loop through every single comment, be it a reply or top-level comment. How do I do this? There can be replies to other replies as well, so my basic loop solution doesn't work.