fasterxml Questions

2

I am upgrading to Jackson 2. I have many custom serializers extending SerializerBase (org.codehaus.jackson.map.ser.std.SerializerBase). What's the new equivalent class in Jackson 2
Rigsdaler asked 11/6, 2015 at 17:48

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

5

Issue is when using Spring cache with redis cache manager, not able to deserializer Spring Pageable response due to no default constructor The spring boot version used is 2.1.4.RELEASE Redis config...

1

Solved

Im facing cannot access javax.ws.rs.ext.MessageBodyReader while upgrading to spring 6. Im using glassfish jersey 3.1.0 for REST services in spring 6 application and com.fasterxml.jackson.jaxrs.jack...
Macroclimate asked 25/1, 2023 at 12:16

2

I'm using Scala 2.11 and Spark 2.4.3 for our AWS glue jobs. Recently, I got the error message below in our the build pipeline. Cause: com.fasterxml.jackson.databind.JsonMappingException: Scala modu...
Goodhumored asked 23/2, 2022 at 19:45

7

Solved

could not read JSON: Can not construct instance of java.util.Date from String value '2012-07-21 12:11:12': not a valid representation("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", ...
Westnorthwest asked 15/7, 2013 at 13:33

2

Solved

I have the following XML that I'd like to deserialize to Java POJO. <testdata> <foo> <bar> <![CDATA[MESSAGE1]]> </bar> <bar> <![CDATA[MESSAGE2]]> &...
Genteelism asked 7/3, 2018 at 15:16

1

I am moving my project from dropwizard to mirconuat and I am getting below exception while consuming webservice response. i tried upgrading jackson version but it failed with warning and below caus...
Conjecture asked 30/6, 2020 at 6:30

1

Solved

When I have a byte array in a DTO and convert it to json using jackson's ObjectMapper, it automatically converts the byte array into base64 string. Example below. @Data @AllArgsConstructor class Te...
Petrochemical asked 19/4, 2021 at 6:22

3

Solved

Hi I am serializing java POJO object to xml using faster-xml(https://github.com/FasterXML/jackson-dataformat-xml/wiki ).When i do that i got xml but it doesn't have any version and encoding in xml ...
Obliquity asked 15/2, 2016 at 9:38

2

Solved

I have a big json file, about ~40Gb in size. When I try to convert this file of array of objects to a list of java objects, it crashes. I've used all sizes of maximum heap xmx but nothing has worke...
Dissemblance asked 1/7, 2020 at 9:58

1

If I have the class A.java: @JacksonXmlRootElement(localName = "A") public class A { } The output that gets produced is: <A xmlns=""> I want to add a few more namespaces to the outpu...
Skip asked 1/2, 2016 at 15:27

4

we have a table with 350+ columns. pojo class is generated and getters order get messed up. trying to use csvmapper from jackson, but it generates csv based on getter order. @JsonPropertyOrder is a...
Persnickety asked 29/4, 2016 at 11:16

3

Solved

In my code, I need to add an org.json.JSONObject to another object which is serialized using gson.toJson. However, when this object is serialized, the values in the JSONObject are nested into a map...
Kaiserism asked 27/4, 2018 at 9:53

4

Solved

When trying to serialize a Category I get a stackoverflow. Exception Warning: StandardWrapperValve[dispatcher]: Servlet.service() for servlet dispatcher threw exception java.lang.StackOverflow...
Meaghanmeagher asked 5/8, 2015 at 19:54

2

Is there a way to set @JsonProperty annotation dynamically like: class A { @JsonProperty("newB") //adding this dynamically private String b; } or can I simply rename field of an instance? If...
Nonoccurrence asked 13/8, 2014 at 16:1

1

Solved

I am getting the below error message, can someone please help or suggest how best to debug this. Cannot deserialize instance of java.lang.String out of START_OBJECT token at [Source: (PushbackI...
Okoka asked 6/1, 2019 at 14:25

2

Solved

I currently trying out Redisson as a Redis client and so far I've been able to replace a good chunk of code with no issues. The only problem I'm having now is trying to use the distributed collecti...
Disprove asked 28/8, 2017 at 20:19

1

Solved

I have a model class that has a field: @JsonDeserialize(using = InstantDeserializer.class) @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSZ") private OffsetDateTime offsetDt; When a ...
Softhearted asked 9/11, 2018 at 20:3

1

Solved

My Java objects have some fields that are annotated write only because they should not be send over a REST interface to the users. @JsonProperty(access = Access.WRITE_ONLY) private List<Integ...
Larose asked 31/8, 2017 at 20:56

5

Solved

I have rest url that gives me all countries - http://api.geonames.org/countryInfoJSON?username=volodiaL. I use RestTemplate from spring 3 to parse returned json into java objects: RestTemplate re...
Demonolatry asked 21/7, 2014 at 11:54

2

My OS is OS X 10.11.6. I'm running Spark 2.0, Zeppelin 0.6, Scala 2.11 When I run this code in Zeppelin I get an exception from Jackson. When I run this code in spark-shell - no exception. val ...

0

import com.fasterxml.jackson.datatype cannot be resolved As the screen shot shows, import com.fasterxml.jackson.datatype cannot be resolved. I have imported jackson-datatype-jsr310', version: '2...
Outcross asked 24/12, 2017 at 2:20

1

Solved

i have Topic class having a data member duration of type LocalTime @Entity @Table(name= "topics") @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id", s...
Serranid asked 19/12, 2017 at 9:6

1

Solved

I have used jackson JsonIdentityInfo to handle the recursive object reference in spring mvc. I came across one issue i.e., Unable to deserialize Json that contain 2 objects with the same ID. { "...

© 2022 - 2024 — McMap. All rights reserved.