Questions tagged [apache-johnzon]

Apache Johnzon is a Top Level Project at the Apache Software Foundation providing an implementation of Json Processing (aka JSR-353) and a set of useful extension for this specification like an Object mapper, some JAX-RS providers and a WebSocket module provides a basic integration with Java WebSocket API (JSR-356).

7 questions
8
votes
2 answers

Apache Johnzon vs Jackson

since Apache released the first final version of Johnzon, it would be really interesting to see if there are already some comparison between Johnzon and FastXML Jackson to see if it is worth to switch. The most important topic is probably the…
smichel
  • 745
  • 1
  • 7
  • 14
1
vote
0 answers

Johnzon sub dynamic json tree mapping

In Apache Johnzon, is there a way to hava a generic field that contains dynamic JSON data, not mappable to a pre-defined POJO? In Jackson you can simply use ObjectNode as a generic container, have some JSON processing on it, and then write the whole…
1
vote
0 answers

Equivalent of Jackson's @JsonUnwrapped in Jsonb

I tried to implement the equivalent of Jacksons's @JsonUnwrapped in Jsonb (using Yasson) with this: @Retention(RetentionPolicy.RUNTIME) @JsonbTypeSerializer(UnwrappedJsonbSerializer.class) public @interface JsonbUnwrapped {} public class…
Xavier Dury
  • 1,530
  • 1
  • 16
  • 23
1
vote
0 answers

Nullpointer exception while creating merge patch between two json documents

Hi I am using following libraries to generate merge patch difference. javax.json
Hari Krishna
  • 3,658
  • 1
  • 36
  • 57
1
vote
0 answers

ClassCastException while using JSONB (apache johnzon) Annotation Polymorphic implementation

I am facing some difficulty in Polymorphic implementation in JSONB (with apache johnzon). There is a restriction that I can't use GSON/JACKSON API so I have to use only JSONB (with apache johnzon). I have 2 different json type objects (ImportResult…
Shashank
  • 712
  • 15
  • 33
0
votes
1 answer

How do return a BigDecimal as decimal in json using jaxrs?

I'm using Tomee 8 as an application server and I have this trouble when my rest service returns a BigDecimal. This is my service: import javax.ws.rs.Consumes; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import…
rfrp
  • 167
  • 1
  • 9
0
votes
1 answer

Difference building JSON object with Yasson and Johnzon

I have the following code using the JSON Processing API (descriptor is the interface I'm trying to serialize). public void serialize(ComponentDescriptor descriptor, JsonGenerator generator, SerializationContext ctx) { …
James Baker
  • 1,143
  • 17
  • 39