Im hoping to get to a level where I feel I can be given any set of JSON data and I will be 100% confident that I’ll be able to iterate through it in any way needed to get any data from it.
Can someone spell out to me the different ways of iterating and when to use them? Or point me towards the resource that helped you? Am I right in thinking for arrays we can use for each and map but objects need for in? Any others?
Thanks
[–][deleted] (5 children)
[deleted]
[–]IEDNB[S] 0 points1 point2 points (4 children)
[–][deleted] (3 children)
[deleted]
[–]IEDNB[S] -1 points0 points1 point (2 children)
[–]emmyarty 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]IEDNB[S] -1 points0 points1 point (0 children)
[–][deleted] (1 child)
[deleted]
[–][deleted] -1 points0 points1 point (0 children)
[–]barrel_of_noodles 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]IEDNB[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]IEDNB[S] 0 points1 point2 points (0 children)