Monday, January 30, 2006

 

Generating the ideal AJAX format with Eiffel

The Ajaxian links to a post discussing the ideal AJAX server response format:

Once you’ve succesfully fired an AJAX request, what sort of response should the server give? An XML document? An HTML snippet? A JSON string which is converted to a JavaScript object? Or something else? In this entry I’d like to discuss the three formats, with examples, and ask you which format you’ve used in your practical AJAX applications.

With Eiffel we easily can generate the XML documents and HTML snippets by using the Gobo or eposix tools. There's no JSON support in Eiffel yet.

Comments:
JSON is a straightforward specification that would be easy to implement for Eiffel (I did some of the work for the Parrot JSON library).

An Eiffel JSON library would be useful beyond AJAX applications - for example it would make a good default format when dumping Eiffel objects for debugging purposes (e.g. as the output format of ANY.tagged_out).

A superset of JSON called YAML might also be interesting as a kind of lite "STORABLE" for Eiffel.
 
Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?