Separate JSON String into array

Hi all, been struggling with this for a little bit now and any help would be greatly appreciated. So basically I get this response from an api -

["Black ESSENTIALS Hoodie", "Black Slim Fit Pants", "Light Grey Chunky Sneakers", "White Crew-Length Socks"]

and I need to basically make each article of clothing an individual object in an array, so when stored in the database it looks like this -

[
[ "Black ESSENTIALS Hoodie" ],
[ "Black Slim-Fit Pants" ],
[ "Light Grey Chunky Sneakers" ],
[ "White Crew Socks" ]
]

Does anyone have any ideas on how I could do this?

2 replies