Archive for the 'Javascript' Category
REST: Lean JSON and XML from the same code
4 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 […]
Autowiring components to a message bus in Javascript
2 Comments Published March 31st, 2008 in Javascript, Message Bus, OpenAjax, SOFEA, SOUIWhen writing AJAX and SOFEA/SOUI applications, it’s a best practice to use a client side message bus to integrate UI components. People recognized this as a best practice lately for GUI development with Swing. As a sidenote Werx was excellent for this but sadly is dead.
One of the ways to do message buses in Javascript […]
Problems with Jersey, REST, JSON and UTF-8 [Update]
2 Comments Published March 22nd, 2008 in JSR 311, Javascript, Jersey, REST, UTF-8, UnicodeUTF-8 is always a problem. Unbelievable. 2008 and we still haven’t fixed this. One of my current projects is a Javascript frontend with a REST backend. The backend stores to MySQL (a famous UTF-8 trouble maker) and creates JSON to REST calls. The problems starts with UTF-8 characters. Somewhere in the callchain - as always […]
Experiments for nicely generating JSON
1 Comment Published March 18th, 2008 in Java, Javascript, Jersey, RESTI’ve been experimenting with ways to nicely generate JSON. There are many ways to generate JSON in Java, like XStream with Jettison, with JAXB or directly with REST API implementation Jersey. Often you don’t want to serialize objects or work mith maps though. Taking code from “The best Markup Builder I could build in Java” […]