I need to show nested data (json response from external API) to the user within my app.
I’d like to create a component so the user can drill down through the json data, expanding and collapsing each section and subsection. The data can be 2-5 layers deep and always end at a list, so the component needs to be fairly dynamic.
Any thoughts on how to approach this?
“wild”: ["zebra, giraffe, “tiger”],
“domestic”: [“dog”, “cat”, “parakeet”]