Jettison 1.2 Released

Jettison version 1.2 has been released. The highlights of this release are: Refactored MappedXMLStreamWriter – which solved many issues with serializing arrays Plugable type converters and support for 64-bit long conversion You can find the full change log for this release on the Download page. Enjoy

XML to JSON

While working on Jettison, I often have need to convert XML to JSON. Here’s a simple method that uses XStream and Jettison to do this conversion. import java.io.StringReader; import java.io.StringWriter; import com.thoughtworks.xstream.io.HierarchicalStreamReader; import com.thoughtworks.xstream.io.HierarchicalStreamWriter; import com.thoughtworks.xstream.io.copy.HierarchicalStreamCopier; import com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver; import com.thoughtworks.xstream.io.xml.XppReader; public class Test { public static void main(String[] args) throws Exception { String xml =… Continue reading XML to JSON

Jettison 1.1 released

Jettison 1.1 has been released. New features in this release are: DOM API Type converters OSGi bundle packaging You can find the full change log for this release on the Download page. Enjoy!

Jettison 1.0.1 released

We’re proud to present Jettison 1.0.1 release. This is just a bugfix release, while new features (such as new APIs (DOM and SAX) and type converters) are planed for 1.1 release (which is expected soon). Download 1.0.1 from the Download section and refer to the User’s Guide for more information.

Java and JSON

It seems that JSON vs. XML debate was one of the hot topics for this winter. Again, I think that “vs.” part is sufficient and that both XML and JSON should have their place in overall technology landscape. One of the obvious JSON advantages is that it can be directly evaluated in JavaScript. And for… Continue reading Java and JSON

Published
Categorized as Java, JSON