Thanks Dennis.
Doru
On 16 Oct 2012, at 13:11, Dennis Schenk <d.schenk(a)students.unibe.ch> wrote:
For anyone searching for something similar in the
mailing list, here is how to parse JSON from a URL:
| parser jsonObject json |
parser := PPParserResource current parserAt: PPJsonParser.
json := (Url absoluteFromText:
'http://api.stackexchange.com/2.1/info?site=stackoverflow') retrieveContents
contents.
jsonObject := parser parse: json.
jsonObject explore.
Cheers,
Dennis
On Tue, Oct 16, 2012 at 12:41 PM, Dennis Schenk <d.schenk(a)students.unibe.ch>
wrote:
Found PetitJson:
http://source.lukas-renggli.ch/petit.html
On Tue, Oct 16, 2012 at 11:57 AM, Dennis Schenk <d.schenk(a)students.unibe.ch>
wrote:
Hi all,
I'd like to read and parse JSON from a URL or alternatively from files. Could anyone
point me in the right direction to achieve this? Is a JSON Parser available in Pharo or is
there a project which provides this functionality?
Cheers,
Dennis
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev