I have a situation where I have data that sometimes can be nested in multiple array layers.
Some times the data can be nested like:
[ [ 'green', 'blue', 'red' ] ]
Other times
[[[ ['green', 'blue', 'red' ] ]]]
I want to extract the array and return it, what would be the most pythonic way of doing this?