[Seaside] Seaside2.5b8-tonyg.9 + JSON

Tony Garnock-Jones tonyg at lshift.net
Wed Aug 17 17:05:54 CEST 2005

Hi Brent,

Brent Pinkney wrote:
> Could you advise whether your JSON thingie can serialize arbitrary
> object  graphs and merterialise them in the browser. I recall the ILS
> project  enhances the JSON grammar to do this.

No, it currently only serialises:


via an extension method #jsonWriteOn:.

I've just had a google for "ils json", and it looks to me like they're
reinventing UBF(A)'s notion of a tagged datum, and possibly also placing
a specific interpretation on the tag. (See
http://www.sics.se/~joe/ubf/site/home.html for details of UBF.)

I guess you could achieve a similar effect by choosing an encoding for
your objects and then implementing #jsonWriteOn: for each class you want
to encode. Reading encoded objects back might be tricky; an interpreter
for JSON data-structures would probably be required. It seems
out-of-scope for the JSON level, in the same way as SIXX is out-of-scope
for YAXO. Perhaps SIXX could be targeted at JSON?

(By the way, the JSON code is now available via squeakmap and


More information about the Seaside mailing list