Skip to content

Tag: jackson

Jackson serializing: Get list of processed objects

For a special case, I need to know which “source objects” of the object tree Jackson processed during serialization. I think there is some internal list, because Jackson might reuse already serialized objects if they are referenced multiple times in the object tree. Can I get this list? Or is it p…

ERROR: org.codehaus.jackson.map.JsonMappingException

I’m using lombok + Java to otimizate the application. The class has the tags @Data , @EqualsAndHashCode(callSuper = false), @NoArgsConstructor, @AllArgsConstructor e @Builder before signature’s class. When I run, It shows the error below: ERROR: org.apache.cxf.jaxrs.JAXRSRuntimeException: org.code…

How to write output of JsonGenerator?

I’m attempting to write the output of data generated by JsonGenerator to console using : From the Java docs – https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/io/StringWriter.html: Shouldn’t the current value written to the Json generator be outputted when I use : Answer Iss…