I have the following JSON and I want to get the name 'Ethan Richardson' from the array photographer_name into a variable.
I have tried to use regex but I could not get that to work.
So what I want is to be left with a variable like let name = 'Ethan Richardson'
The JSON structure is below:
{
"eventName": "Hilton Hotel",
"photographer_name": ["Ethan Richardson"],
"image_url": "https://s-media-cache-ak0.pinimg.com/originals/a0/b8/b6/a0b8b6b2e9b077a8ac7791455f83a27b.jpg",
"subtitle": "Enjoy the night",
"result": "1"
}