Hi, I have a simple JSON output:
"{ \"max_output_watts\": 150, \"frame_length_inches\": \"62.20\", \"frame_width_inches\": \"31.81\" }"
which I use in a function like this:
... $.getJSON(pop_model_dims_url, {model_id: selected}, function(data, jqXHR){ alert(data.max_output_watts); }); ...
The warning is now just a placeholder, but I donβt understand why the warning value is "undefined". If I do this:
... $.getJSON(pop_model_dims_url, {model_id: selected}, function(data, jqXHR){ alert(data); }); ...
I get a full json dump as expected.
Any help is greatly appreciated.
source share