Questions tagged [jettison]

Jettison isn't your ordinary Java API - it's a powerful collection of tools such as STaX and DOM specifically designed for reading and writing JSON data.

What is the level of support JACKSON offers for Java Generics?

Currently, I am engaged in a project that utilizes the restFul approach and is schema based. In this project, we are utilizing JAXB for XSD to JAVA conversion. Below is the structure of a class used in this project: @XmlAccessorType(XmlAccessType.FIEL ...

Bug in RestEasy where Jettison is not correctly handling single element arrays

Problem description: RestEasy with Jettison When the array contains two elements, the format is: {"MyArray" : {"Array" : [{"a" : 1, "b" : 2}, {"a" : 3, "b" : 4}]}} However, when the array has a single element, the format is: {"MyArray" : {"Array" : {"a ...

Is Jackson a suitable tool for conducting XSLT transformations?

Within our projects, we utilize Jackson for mapping between JSON and Java objects, as well as Jettison for converting XML input streams to JSON objects. One common scenario involves applying an XSLT transformation on an XML document to create a "JSONized" ...

Converting JSON string or JSON array into a String within a Java object

My Elixir class generates a JSON with a field that can hold either a string or an array: field :logs, {:array, :string} If it's unclear, the structure will look like this: {"logs" : "some log 1"} or { "logs": ["some log ...