[
Lists Home |
Date Index |
Thread Index
]
- To: xml-dev@lists.xml.org
- Subject: JSON Again, Stop Me Before It's Too Late
- From: Alan Gutierrez <alan-xml-dev@engrm.com>
- Date: Tue, 27 Sep 2005 04:14:40 -0400
- Mail-followup-to: xml-dev@lists.xml.org
- User-agent: Mutt/1.4.1i
I'm developing a JavaScript/DHTML application. Ruby on Rails
uses the Prototype and script.aculo.us JavaScript libraries,
which are gaining traction in this area of web development.
JSON has been discussed here before. I started to use JSON
because when I view source on many DHTML applications, that's
what I see. It was quick and dirty, and I knocked out an XSLT
2.0 transform to generate JSON and HTML generator functions.
Now I'm trying to figure out how to escape strings...
This is the JavaScript code to stringify a string, and the
implementations of JSON stringifiers in other languages are just
as simplistic. Look for: case 'string':
http://www.crockford.com/JSON/json.js
I'm a Mid-Western American who wouldn't know how to make his
computer spell cafe correctly if his life depdended on it. I try
to defer learning the details of Unicode by adhearing to the XML
specifications and Java APIs as best I can.
That block of code does not look like it encompases the width
and breadth of i18n, but maybe I'm mistaken.
It's not too late for me to start exploring using XML for
transport.
--
Alan Gutierrez - alan@engrm.com
- http://engrm.com/blogometer/index.html
- http://engrm.com/blogometer/rss.2.0.xml
|