I have data like this {"black":["/file/d60f198e-dde5-4e5e-b2ab-1ee10c96a027.png"]}
how to change data to be "black" : "/file/d60f198e-dde5-4e5e-b2ab-1ee10c96a027.png"
? I'm using javascript. Thanks advance
I have data like this {"black":["/file/d60f198e-dde5-4e5e-b2ab-1ee10c96a027.png"]}
how to change data to be "black" : "/file/d60f198e-dde5-4e5e-b2ab-1ee10c96a027.png"
? I'm using javascript. Thanks advance
A generic solution would be something like:
which would give you:
Just set that property to be the value of the array: