I have a String which i have passed on via a HTTP request. However i am unable to get the value out of it. The string is as following:
var a = {"health":"img/biking_cropped.jpg","budget":"img/hip_cropped.jpg","culture":"img/old_museum_cropped.jpg"}
I am however unable to get for example the value of Health as a.health gives undefined. However a[0] only gives { back. Using JSON.parse crashes the server which it is running on.