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;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