I’ve been trying to get values from an ajax response — without any success, the closest I got was getting an array of undignified.
$.each(JSON.parse(response,function(i,value){console.log(value[1].buildings);}));
Here is a screenshot of my ajax response
I need to store name + success:false + column + message to a variable as json
Thanks for your input!
2
Answers
Please check your datatype for hasCircuit. It should be integer
If you run the snippet below you can see that the fn variable is undefined. That’s why your array is undefined. Remove the callback function from your snippet and it should work.
Solution: