[squeak-dev] Json simple example?

Tony Garnock-Jones tonyg at ccs.neu.edu
Thu Jul 21 20:16:03 UTC 2011


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