Re: [Pharo-users] Best ways to retrieve JSON objects from a feed?

2020-03-20 Thread Sven Van Caekenberghe
> On 20 Mar 2020, at 14:40, Sven Van Caekenberghe wrote: > > And a very simple one: > > ZnClient new > forJsonREST; > get: 'https://api.ipify.org?format=json'. Here is another cool example: ZnClient new forJsonREST; get: 'https://ip.seeip.org/geoip'.

Re: [Pharo-users] Best ways to retrieve JSON objects from a feed?

2020-03-20 Thread Sven Van Caekenberghe
Hi Tim, Sure this is possible (with the latest Zn of course): ZnClient new forJsonREST; url: 'http://climatedataapi.worldbank.org/climateweb/rest/v1/country/annualavg/pr'; addPath: { '20190101'. '20191231'. #bel }; get. I do not know how to use this API to get actual data, but the above

[Pharo-users] Best ways to retrieve JSON objects from a feed?

2020-03-20 Thread Tim Mackinnon
Hi everyone, I’m finally finding some space from world chaos and looking more into Pharo, and I have a question about retrieving json data from feeds - how is the best way to elegantly parse it - e.g. I am doing : url := ZnUrl fromString: 'http://climatedataapi.worldbank.org/climateweb/rest/v