Hi, This will do (provided you have NeoJson loaded): ZnClient new url: 'http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+P...'; contentReader: [ :entity | NeoJSONReader fromString: entity contents]; get. Sven
On 15 Dec 2015, at 18:30, Sabine Manaa <manaa.sabine@gmail.com> wrote:
I assume it is simple but I don't get it:
Entering this in the web browser, I get a Json string in the web browser: http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+P...
I want to call this from Pharo and I want to use the results within pharo.
Can anyone give me a hint?
I was experimenting with sth like this but I was not successful:
(html jQuery getJson url: 'http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+P...'; onSuccess: '???'; dataType: 'json') inspect
Regards Sabine
-- View this message in context: http://forum.world.st/get-json-data-from-external-url-tp4867166.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.