Robin Haswell wrote: > Michael Peters wrote: > >> >> Robin Haswell wrote: >> >>> Hm I may be mistaken. AFAIU JSON is a JS-compatible serialization form? >>> Do browsers have built-in JSON deserializers? >> >> >> Well, they'd have to if they have JS interpreters right? >> > > > Um no, I mean can you convert a JSON object into a memory construct > without parsing it with Javascript code. Hence, is there a built-in JSON > deserializer (that isn't written in JavaScript).
Isn't that what eval() is? > As far as I am aware, > JSON isn't part of the javascript language specification. Well, it's not called JSON, but it is a part of the spec. eval( "{foo: 123, bar: 456}" ); As far as comparing it to XML - http://en.wikipedia.org/wiki/JSON#Comparison_to_XML_and_other_markup_languages -- Michael Peters Developer Plus Three, LP _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs