Archive for the ‘Jettison’ Category

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 = […]

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 in practice

Joel Confino of Chariot Solutions, LLC wrote an article on building Web 2.0 Web applications using jQuery, Spring MVC, and XStream/Jettison. It’s good to see Jettison in practice

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.