I have a field called as genres in a Redshift table. It's stored as a string and not in the form of a JSON array since redshift does not give us that capability.
[{"id": 27, "name": "Horror"}, {"id": 878, "name": "Science Fiction"}]
I want to extract the elements - 'id' and 'name' and dump it into another table in the below-given format. How do I do it?