I mean accessing deeply nested JSON data that is any arbitrary combination of arrays/objects nested within one another and any number of levels deep.
This has me pulling my hair out every time I work with an API. It’s always some convoluted nightmare of using nested Object.keys.map and .map within one another with multiple return statements and it’s just a huge headache.
I have Redux giving me the following JSON data from an API. The payload contains an array with 20 items called items. Each array element in that items array has (0-19) has a name property. How can I access the names of each object nested within this items array?
I’ve been fighting with this for 2 days and can’t get it working. I’ve tried to implement every combination of Object.keys.map/.map imaginable and still can’t access the names property.