If I remember correctly from a program I’ve written, you should be able to define in the API call to OpenAI that the response should be a JSON, rather than a string within “[…]” quotes. But that’s nearly 7 months back and I made that in Python where your potentially much more flexible in what you http: request from the API…
So probably safest to go with Jici’s approach 
… or you could string:find and replace:find and replace and replace “[” with “” and “]” with “” and then split by “,” which would give you the individual objects within the curly braces … but how you transform the string of into individual values per object easily is Client side is currently beyond my knowledge. I have the feeling, it shouldn’t be too hard with some smart text operations.
1 Like