Archive for the 'JSON' Category
David Pollak (from Lift): “There’s no way to convert from XML to JSON because XML contains sequences not expressible in JSON”
0 Comments Published October 10th, 2008 in JS, JSON, Javascript, XMLHmm[*]. Not sure if this is true (with CDATA, #Text and @attributes handled in some converters). For me the problem is more that there are too many ways to convert XML to JSON. For exampe the Badgerfish convention. Or the the Google and Yahoo versions. Or the XML.com way. And the Parker convention.
But the […]
JsonBuilder for Scala, REST and Jersey
5 Comments Published September 18th, 2008 in JSON, Java, Jersey, REST, ScalaHow to generate Json for REST? If you’re suspicious of automatic generation like me?* I’ve created a markup builder which can be used with Json and made a look into the future in my post “The best Markup Builder I could build in Java”:
“Closures in Java 7 will make it much easier to write […]
REST: Lean JSON and XML from the same code
5 Comments Published April 4th, 2008 in AJAX, Beautiful Java, JSON, Java, Javascript, REST, XMLGenerating JSON and XML with the same code is difficult. One can create the semantically richer XML and convert it to JSON, but JSON notations for XML like Badgerfish look quite ugly to JSON advocates.
The problem at the core is that XML is typed whereas JSON is not. Every node in XML needs a […]