jackson-modules Questions

3

The new Spring Boot 3.x upgrade (which also means an upgrade of Java to Java 17) has changed the namespaces from "javax" to "jakarta". I am getting an exception when I run my ap...
Imbrication asked 11/12, 2023 at 11:42

5

I have a POJO class: public class Stock { int id; String name; Date date; } Are there any annotations or development framework/API that can convert POJO to JSON schema like below: {"id&quo...
Gwen asked 5/10, 2014 at 4:50

7

I am using a library com.fasterxml.jackson library for JsonSchema, I am creating an IntegerSchema object, when I set range for integer schema using below code: main(){ IntegerSchema intSchema = ne...
Ron asked 9/6, 2016 at 9:36

4

I'm strugling with using jackson-dataformat-xml on android I have some very basic code that works fine on oracle jre JacksonXmlModule module = new JacksonXmlModule(); module.setDefaultUseWrapper(...
Ogive asked 11/7, 2015 at 17:45

6

I've been using FasterXML/Jackson-Databind in my project for a while now, and all was working great, until I've discovered this post and started to use this approach to desserialize objects without...
Ferretti asked 24/8, 2016 at 12:13

5

Solved

I have an entity: @Entity public class Book { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; @Column private String title; @OneToMany(fetch = FetchType.LAZY, mappedB...
Widgeon asked 18/9, 2014 at 7:45

1

Solved

I'm as upgrading from Spring Boot 1.5.21 to 2.2.5. I need to use MonetaryModule to deserialize rest calls, and depending on Spring's ObjectMapper. I have defined such a bean for this module in a ...
Briannebriano asked 7/5, 2020 at 11:46

6

Solved

I'm looking for a module for the new JDK8 java.time classes. I have looked through the FasterXML GitHub Project Listing and presently found none. As I understand Jackson is still being compiled ag...
Leviticus asked 27/1, 2014 at 15:30

3

Solved

What I have: I'm generating a JSON schema from a pojo. My code to generate the schema looks like so: ObjectMapper mapper = new ObjectMapper(); TitleSchemaFactoryWrapper visitor = new TitleSchemaF...
Cris asked 9/1, 2015 at 15:17

3

Solved

Spring Boot already contains the core Jackson dependency + several others. If you e.g. want to add the org.json or jsr-353 databinding modules you to explicitly define the vesion of these addition...
Spinose asked 7/8, 2014 at 14:1

4

Solved

We're migrating from Joda to Java Time. Currently we use DateTime of Joda in our entity. AFAIK DateTime is equivalent to two types in Java: OffsetDateTime and ZonedDateTime. Since we're going to pe...

1

Solved

NOT A DUPLICATE -- I'm trying to follow the solutions given in Is there a jackson datatype module for JDK8 java.time? (it is the cause of this question, not a duplicate). I added <dependen...
Locomotive asked 30/4, 2018 at 22:1

1

I am using SpringBoot 1.5.9., Jackson 2.8 and Spring Framework 4.3.13. I am trying to register and use the AfterburnerModel. According to the Spring Boot documentation, to configure the ObjectMap...
Swansea asked 23/3, 2018 at 16:57

1

Solved

I have a 'Example' Pojo class as mentioned below. Can any one tel to save instance of Example class to YAML file using Jackson. public class Example { String name; int value; public String getNa...
Alluvion asked 27/9, 2017 at 10:43

2

Solved

The scenario is as follows. I have an ObjectMapper (Jackson 2) that registers a JodaModule, capable of serializing and de-serializing Joda DateTime type. This ObjectMapper is tested with custom JSO...
Celestinacelestine asked 25/1, 2014 at 19:50

2

Solved

I'm trying to deserialize a byte array into a java type using jackson object mapper. @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) public class A...
Houseless asked 8/11, 2016 at 22:21

3

Solved

I am running into the following error java.lang.NoSuchFieldError: WRITE_DURATIONS_AS_TIMESTAMPS at com.fasterxml.jackson.datatype.joda.ser.DurationSerializer.<init>(DurationSerializer.java...
Ruction asked 26/10, 2015 at 15:51

1

Solved

I've searched Stack Overflow before posting, but there were no solutions for Jackson. Here is a server response: { "ok": true, "result": [ { "update_id": 489881731, //rest }, { "update_id...
Bracci asked 11/5, 2016 at 13:37

1

I'm using the latest branch for Jackson module - jackson-module-jsonSchema i.e. 2.4.4-Snapshot. I'm trying to use the @JsonPropertyOrder annotation to maintain the order of the POJO attributes, bu...
Towel asked 12/11, 2014 at 10:12

2

Solved

I've been trying to upgrade the JSON modules to use the FasterXML (2.6.3) versions of Jackson instead of the old Codehaus modules. During the upgrade, I've noticed that the naming strategy differs ...
Logarithmic asked 13/11, 2015 at 10:39

4

Solved

I have been trying to read a csv and add fields to a Data Structure. But, one of the row is not formed properly, and I am aware of that. I just want to skip the row and move on to another. But, eve...
Bankable asked 24/9, 2015 at 2:9

3

Solved

I'm struggling with this: We have a Table class with a Guava multimap (simplified code, basically 1 member, 2 constructors, getter and setter for the multimap): public class Table { private Lin...
Monostylous asked 17/11, 2014 at 18:12

1

Solved

I have a Class that contains a Map (with non String key) and some other fields. public class MyClass() { private Map<KeyObject, OtherObject> map; private String someField; public MyClass...
Storz asked 12/8, 2014 at 19:0

1

Using Jackson with the jackson-dataformat-xml module, I am able to serialize POJO to both JSON and XML. There are a few fields (xml attributes) in my object that should only be serialized to XML bu...
Twopiece asked 7/4, 2014 at 3:45

1

Solved

I am using Jackson APIs for Mapping my JSON response into a java object. For example, for the response { name :'karthikeyan',age:'24',gender:'Male'} @JsonProperty("name") public String _name; @Js...
Eastbourne asked 13/2, 2014 at 10:33

© 2022 - 2025 — McMap. All rights reserved.