PDA

View Full Version : JSON problem



jabba
26 Jan 2011, 5:36 AM
Hi,
have a data link http://open.mapquestapi.com/nominatim/v1/reverse?format=json&json_callback=renderExampleThreeResults&lat=51.521435&lon=-0.162714
This is a cross-domain.
How to get records from 'address':{...} section. There is without '[ ]' and store couldnt get it.
When i put it into a grid, grid is empty.

I need simply get this data into a variables.
Can any one help me ?

<code>
var ds = new Ext.data.JsonStore({
proxy: new Ext.data.ScriptTagProxy({
url : 'http://nominatim.openstreetmap.org/reverse?format=json&lat=50.679252&lon=19.21652&zoom=18&addressdetails=1&json_callback=stcCallback1001',
method:'GET'})
});
ds.load();
</code>

dduffy
28 Jan 2011, 3:35 AM
your JSON is not valid JSON, you should post your JSON response into a JSON Lint validator @ http://www.jsonlint.com/ there is a parsing error in your JSON.