[squeak-dev] Json simple example?
Lawson English
lenglish5 at cox.net
Thu Jul 21 20:23:16 UTC 2011
That works for me too. It must be something I'm doing wrong in the
previous lines of code.
Thanks
L
On 7/21/11 1:16 PM, Tony Garnock-Jones wrote:
> On 2011-07-21 3:16 PM, Lawson English wrote:
>> How can I use the Json class?
>
> Works for me in a pristine Squeak 3.2 loading JSON-ul.35.mcz from
> Squeaksource and inspecting:
>
> Json readFrom: '{ "glossary": { "title": "example glossary",
> "GlossDiv": { "title": "S", "GlossList": { "GlossEntry": { "ID":
> "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup
> Language", "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": {
> "para": "A meta-markup language, used to create markup languages such
> as DocBook.", "GlossSeeAlso": ["GML", "XML"] }, "GlossSee": "markup" }
> } } } }' readStream
>
>
> The only gripe I have is use of JsonObject rather than Dictionary, but
> it definitely works for me.
>
> Regards,
> Tony
>
>
More information about the Squeak-dev
mailing list
|