On 14 Mar 2016, at 07:25, stepharo <stepharo@free.fr> wrote:
On 13 Mar 2016, at 22:42, Henrik Nergaard <henrik.nergaard@uia.no> wrote:
Correct, I used that for the example since it is by default in the Image . And that is a pity, IMHO, it sneaked in, while others have asked for NeoJSON to be included in the past ;-)
Sven is STON able to replace MCFileTreeJsonParser if so can you open a bug entry and we kill it. You know my point of view of such parsers....
https://pharo.fogbugz.com/f/cases/17822/Use-STON-for-JSON-parsing-in-MC-File...
Stef
Anyway, STON, which is also part of the base image can parse JSON just as well.
STON fromString: '[42, {"JSON":true}, -1.5]'.
You can also generate JSON.
STON toJsonStringPretty: { 42. { 'JSON'->true } asDictionary. -1.5 }.
STON toJsonString: { 42. { 'JSON'->true } asDictionary. -1.5 }.
Best regards, Henrik
-----Original Message----- From: Pharo-users [mailto:pharo-users-bounces@lists.pharo.org] On Behalf Of stepharo Sent: Sunday, March 13, 2016 10:34 PM To: Any question about pharo is welcome <pharo-users@lists.pharo.org> Subject: Re: [Pharo-users] Ideas of web services that I could script in a couple of lines?
Henrik
do you use MCFileTreeJsonParser just because this was just the JSON parser you got at hand?
Stef
Le 13/3/16 22:24, Henrik Nergaard a écrit :
Accessing the Nominatim service: http://wiki.openstreetmap.org/wiki/Nominatim .
http://ws.stfx.eu/ATBXE2DN83CW
Best regards, Henrik
-----Original Message----- From: Pharo-users [mailto:pharo-users-bounces@lists.pharo.org] On Behalf Of stepharo Sent: Sunday, March 13, 2016 9:52 PM To: Any question about pharo is welcome <pharo-users@lists.pharo.org> Subject: [Pharo-users] Ideas of web services that I could script in a couple of lines?
Hi hernan and others
I'm looking for ideas of simple services capital, dictionaries.... forecast that I could access using Zinc in a couple of lines.
This is for challenges that I'm writing for the mooc. Stef