Questions tagged [jettison]

Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON.

Allows the creation of JSON based web services in frameworks like or XML serialization frameworks like .

There are currently two conventions for mapping JSON to XML.

  • BadgerFish which implements the full XML infoset in JSON using various techniques.
  • Mapped convention which allows you to manually map [tag:XML namespaces] to JSON element prefixes.

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

Jettison Home Page

Jettison User Guide

99 questions
0
votes
1 answer

Is it possible to use Jackson for XSLT transformations

In (at least) one of our projects we are using Jackson to map bewtween JSON and Java objects and vice versa. We are also using Jettison to map between XML input streams to JSON objects (and vice versa). A typical use case of the latter is to apply…
forty-two
  • 12,204
  • 2
  • 26
  • 36
0
votes
0 answers

Marshalling java Lists with JAXB / JSON for jqGrid using Jettison or Jackson

I am implementing a generic java POJO wrapper for jqGrid consumption, using JAXB and JSON. This is a CXF service so my marshaller libraries of choice are either Jettison or Jackson: @XmlRootElement(name = "response") public class…
Pablo
  • 167
  • 1
  • 2
  • 13
0
votes
1 answer

JAX-RS: Custom TypeConverter for resteasy-jettison

Is there any way to provide Custom TypeConverter in resteasy-jettison? By default jettison parse String value into int if it contains only numbers... I need to change it. With clean jettison, there is possibility to write own implementation of…
rychu
  • 135
  • 1
  • 10
0
votes
1 answer

Custom JSON Date handling in CXF

I'm using apache CXF to create a JAX-RS service that consumes multipart/form-data, one of the parts is application/json which I'm handling in a Java bean. The problem that I have is that the date format being passed in is not recognised by the…
Daniel Walton
  • 218
  • 1
  • 4
  • 17
0
votes
0 answers

RestEasy Jettison JAXB/JSon output issue

I am developing a Java EE webapp using JBoss AS 7 and Resteasy. I would like to do the Communication with the Rest Interface using the Jettison JAXB/JSon Provider. As a demo I implemented the following JAXB annotated class: @XmlRootElement(name =…
saberrider
  • 585
  • 3
  • 16
0
votes
1 answer

JAXB to JSON with same notation Jersey uses?

I use this to convert a JAXB bean to JSON code: private String marshall(final Book beanObject) throws Exception { JAXBContext context = JAXBContext.newInstance(Book.class); Marshaller marshaller = context.createMarshaller(); Configuration…
user1438038
  • 5,821
  • 6
  • 60
  • 94
0
votes
1 answer

Change the Date Default Format in Jettison

Can the Default Date format returned by Jettison Library can be changed ? This is the default Date format { "post": { "activityDate": "2012-07-03T16:15:29.111-04:00", "modfiedDate": "2012-07-03T16:15:29.111-04:00", "createdDate":…
Swakesh
  • 233
  • 5
  • 15
-1
votes
2 answers

Is org.codehaus.jettison.json.JSONArray Immutable?

I pass org.codehaus.jettison.json.JSONArray as an argument to a method and I update (add/remove elements from the array) it in the method. But the changes are not reflecting in the caller. From the source code, the class doesn't seem to Immutable. I…
Vinod Jayachandran
  • 3,726
  • 8
  • 51
  • 88
-1
votes
1 answer

spring jar conflicts with Axis2 jars

I'm getting below error where spring-ws jar is available but still I'm getting below error.( Spring 4.1.0, Axis 1.6.2) failed spring-ws java.lang.NoSuchMethodError: org/springframework/util/ClassUtils.forName(Ljava/lang/String;)Ljava/lang/Class; …
Krish
  • 321
  • 2
  • 9
1 2 3 4 5 6
7