On 7/10/06, Chris Hostetter <[EMAIL PROTECTED]> wrote:
The thing that scares me about all of this, is that it becomes very hard
to tell the difference between a named list and "a list of values and
maps" ... i abhor information loss, but I guess I (and my incredibly
complex RequestHandlers) aren't really the target usage of JSON.
Yeah, JSON should strike a different balance. If we tried to make
JSON convey 100% if the info that the XML does, it wouldn't be worth
it IMO. It would be horrendously ugly.
Exaple of what not to do:
<lst><lst name="a"><int name="one">1</int><long name="two">2</long></lst></lst>
{"type":"lst", "val": [
{ "name":"a", "type":"lst", "val": [
{ "name":"one", "type" : "int", "val" :1},
{ "name":"two", "type" : "long", "val" :2} ]
}
}
-Yonik