Skip to end of metadata
Go to start of metadata

Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nearly transparent enablement of JSON based web services in services frameworks like CXF or XML serialization frameworks like XStream.

There are currently two included conventions for mapping JSON to XML. The first, is BadgerFish which implements the full XML infoset in JSON using various techniques. The second, is called the "mapped" convention. It allows you to manually map XML namespaces to JSON element prefixes.

Jettison was developed for usage in XFire and CXF to enable JSON based services. Later it also found its place in Java object serialization with XStream

To learn more, see the User's Guide.

News

Jettison 1.3.3 Released

Jettison version 1.3.3 has been released. The highlights of this release are:

  • Correct processing of JSON arrays which need to be mapped to primitive arrays in JAXB beans
  • XMLStreamException will have its location property pointing to the first illegal character
  • Adding guards in MappedXMLStreamReader to prevent NPE when reading text. 
  • Resolving a number of open issues as already fixed

You can find the full change log for this release on the Download page. Enjoy!

Jettison 1.3.2 Released

Jettison version 1.3.2 has been released. The highlights of this release are:

  • Bug fixes (see Change Log)
  • Making it simpler to override and customize the way JSON sequences are handled
  • Recognizing caller-provided namespace prefixes
  • Few performance improvements

You can find the full change log for this release on the Download page. Enjoy!

Jettison 1.3.1 Released

Jettison version 1.3.1 has been released. The highlights of this release are:

  • Few improvements to MappedXMLStreamReader
  • Option to produce a human-readable JSON output
  • Better handling of the ignorable (mixed) text content

You can find the full change log for this release on the Download page. Enjoy!

Jettison 1.3 Released

Jettison version 1.3 has been released. The highlights of this release are:

  • MappedXMLStreamReader has been improved to handle top level arrays with multiple elements

You can find the full change log for this release on the Download page. Enjoy!

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!

  • No labels