jackson-databind Questions
4
Solved
I'm playing around with Spring Boot 2.0.0M2, trying to create a CLI application, not a web one. My problem is that even including
compile 'org.springframework.boot:spring-boot-starter'
compile ...
Cheeky asked 28/6, 2017 at 16:14
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
2
Solved
In my company we have a fixed JSON message structure:
{
"headerVal1": ""
"headerVal2": ""
"customPayload": {
"payloadType":""
}
}
I would like to have some kind of library, which allows me,...
Shippen asked 29/4, 2019 at 8:43
4
Solved
I'm using the latest 2.13.0 version of jackson, and when I try to parse a YAML file, I'm getting this exception
java.lang.NoSuchMethodError: 'com.fasterxml.jackson.core.io.ContentReference com.fas...
Meyeroff asked 20/12, 2021 at 12:48
3
I'm using spring boot to run kafka consumer with Json Deserializer. When running the application I'm getting the error
Caused by: java.lang.NoSuchFieldError: READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_...
Smoulder asked 15/5, 2023 at 19:43
11
Solved
This is my JSON Array :-
[
{
"firstName" : "abc",
"lastName" : "xyz"
},
{
"firstName" : "pqr",
"lastName" : "str"
}
]
I have this in my String object. Now I want to convert it into J...
Nonresistance asked 16/6, 2017 at 12:34
5
Solved
I have a working spring boot application that uses JSON as exchange data format. Now I had to add a service that sends their data only in xml. I added jackson-dataformat-xml to my pom and it worked...
Syrinx asked 29/8, 2019 at 8:59
1
Solved
I'm working on a Java Jersey application. In my pom.xml file, I've included certain Maven dependencies that have critical vulnerabilities.
Even after upgrading to the latest versions, some of these...
Inflate asked 24/8, 2023 at 18:6
2
Solved
Java 8 date/time type `java.time.LocalDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling
I have been getting this ...
Attribution asked 25/10, 2022 at 3:30
3
Solved
We have a date field being populated with a long in elasticsearch index.
The field mapping is:
@Field(type = FieldType.Date)
@JsonFormat(shape = JsonFormat.Shape.NUMBER_INT)
private LocalDateTime...
Andersen asked 18/7, 2019 at 16:13
3
Solved
In prior versions of jackson, we were using the following two ways to modify the Property Naming during serialization and deserialization of objects.
First way:
Mentioning the following annotation ...
Volin asked 7/12, 2022 at 9:33
3
I am working on a spring boot application, I want to upgrade jackson-databind from 2.9.10.2 to 2.10.2. Below is snippet from my pom.xml and error I am getting after upgrading dependency :
pom.xml :...
Gracie asked 13/3, 2020 at 12:21
2
Solved
I'm upgrading the version of my project and I am currently using jackson-databind-2.13.0
.But I noticed that ObjectMapper's enable method is deprecated.
They said to use it like this instead.
@depr...
Accusal asked 6/1, 2022 at 7:59
3
I'm working on native C++ development and looking for JSON parser that can handle complex JSON files and convert into class objects.
I've looked at native benchmarks for JSON parsers available i...
Lactate asked 22/1, 2019 at 23:53
1
I am using Jackson to serialize my Java POJO classes. In addition to fields, I have in Java POJO, I would like to add some additional information in JSON I am writing my own custom CustomClassSeria...
Aviary asked 2/5, 2022 at 16:43
4
Solved
I am making rest web-services my code is:
@Path("/add")
@POST
@Produces(MediaType.APPLICATION_JSON)
public Response addMembers(List<GroupMemberMap> groupMemberMaps){
String message = "";
...
Dudeen asked 24/2, 2016 at 17:21
4
I have the following two types of JSON objects:
{"foo": "String value"}
and
{"bar": "String value"}
Both of them represent a specialized type of the same base object. How can I use Jackson fo...
Hardenberg asked 22/5, 2018 at 6:14
4
Solved
I have constructed a Java Object using lombok with builder pattern. But, I am getting the following exception when trying to deserialize a Java object using Jackson. This occurs for fields which ha...
Olwena asked 1/8, 2018 at 11:1
1
Solved
There is a class with custom naming of getters and setters. Here they have no "get" or "set" prefix.
This special configuration is needed for only one class, not globally.
I se...
Olericulture asked 27/11, 2021 at 12:2
1
I have an abstract class called Fruit and I put the @JsonTypeInfo and @JsonSubTypes on it as follow:
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "f...
Pede asked 12/10, 2021 at 6:55
2
current version jackson-databind-2.9.10.1.jar
need to upgrade jackson-databind-2.11.1.jar
I could not find ToStringSerializerBase class in new version of jackson updated jar
org.springframework.b...
Ewe asked 9/7, 2020 at 2:27
3
I am working on a rest api application and i have some problems with the code. I want to return an object that extends avro schema and adds HATEOAS links to the response. I did some investigation a...
Tore asked 16/3, 2020 at 10:9
1
How to handle InvalidFormatException for empty values on enumerations. We would like to throw a Validation error when an empty value is passed to the underlying Jackson parser instead of a low leve...
Sandblast asked 17/6, 2021 at 7:51
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
3
Solved
I was experimenting with Jackson 2.0 mixins to serialize a class with no annotations.
Simplified source code below. Note that I'm not using getters/setters, but it seemed like I should still be abl...
Mansfield asked 7/6, 2012 at 18:43
1 Next >
© 2022 - 2024 — McMap. All rights reserved.