[squeak-dev] [ANN] Altitude

Colin Putney colin at wiresong.com
Thu Jul 19 20:53:55 UTC 2012


On Thu, Jul 19, 2012 at 1:21 PM, Frank Shearar <frank.shearar at gmail.com> wrote:

> Ah, I see a JSON parser lurking in there. Oddly enough, I needed a
> JSON parser the other week and changed Tony Garnock-Jones' JSON parser
> to work off Xtreams. It was a pretty easy port, actually. I haven't
> bothered to make it public because I've only just started playing
> around with some ideas, but I can if there's any interest.

Yes. SAX-style, rather than producing a tree of Dictionaries and Arrays.

The JSON support in Altitude is actually more stable and mature than
the HTML-oriented stuff. The app I'm building uses Ajax a lot, and for
a while I was just serving static HTML and Javascript off the disk,
which would then call into an API built from ALJsonResources. See also
ALJsonRenderer, which provides a protocol for rendering JSON with
callbacks.

Colin


More information about the Squeak-dev mailing list