Most voted "jackson" questions
Jackson is a JSON analyzer, serializer and desirializer maintained by Fasterxml, LLC.
Learn more…24 questions
Sort by count of
-
4
votes1
answer1947
viewsHow to extract Array from JSON into an object’s List type attribute
I am using the Flickr API to get the information from the images, which returns the following JSON:…
-
4
votes0
answers368
viewsERROR: null value in column "id_municipio_id_municipio" violates the non-null restriction
This error is occurring when I try to persist the screen data to the database. I checked, by debugging the screen, that the data is being captured. When the method exits line 33 of the image it goes…
-
3
votes1
answer411
viewsJackson - Circular dependency object conversion
Given the classes below, we need to solve the problem of infinite recursion (cyclic dependency) and, for this, we use @Jsonidentityinfo, from Jackson 2+: @JsonIdentityInfo(scope=Parent.class,…
-
2
votes1
answer1114
viewsHow not to serialize some attributes in Restful calls with Jersey and Jackson
I’m using the Jersey library in conjunction with the Jackson library to use REST-like web services. In calls, I usually use the following code that transforms a particular entity into a JSON to be…
-
2
votes1
answer527
viewsConfigure the Jackson library for dynamic attributes
I am using the Jackson library to transform the following JSON into a Java object.…
-
2
votes1
answer180
viewsHow to choose which field to serialize - Jackson
I’m using Jackson to convert my objects into Json. The fields I don’t want to serialize milestone with the @Jsonignore annotation, but in some cases I wish I could serialize these fields. Is there…
-
2
votes1
answer242
viewsObject Serialization Error with Spring Data and Spring Web
I was creating a simple endpoint of an entity and ended up getting the following exception: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class…
-
2
votes3
answers1652
viewsConvert a JSON to a Java list
I’m having trouble turning a JSON into a Java list, I tried with GSON and Jackson, but I couldn’t succeed with either. My JSON is formatted like this: [[["00000000000","00000","Fulano de Souza",""],…
-
1
votes0
answers221
viewsJsonbackreference and Jsonmanagedreference, bidirectional between two classes
I have the following Dtos public class UserDTO { private String name; @JsonManagedReference("phone") private UserPhoneDTO phone; } public class PhoneDTO { private String number;…
-
1
votes0
answers28
viewsAndroid Jackson Post
A Question : I’m trying to do a post, but the Jackson library during the Post doesn’t change the name of the field during serialization, how do I do this with Jackson? My class below :…
-
1
votes1
answer483
viewsSpring/Jackson Json - Problem in deserialize
This question is a continuation of another question, a user answered found the solution to my other question (Custom Json Spring Receipt), but I’m now having trouble mapping using Jackson. I want to…
-
1
votes2
answers201
viewsJson created incomplete
Next people had a loop problem in my project when creating Json the application looped. I was able to solve the loop problem with the @Jsonmanagedreference, @Jsonbackreference annotation. However,…
-
1
votes1
answer978
viewsMap json using Jackson
I have a question on how to map a json to a model, I really have no idea which way to go, I saw some material on the internet, but what I really lack is to really understand how this works there in…
-
1
votes0
answers114
viewsJackson Fasterxml - @Jsonmanagedreference and @Jsonbackreference
I’m using the notes @JsonManagedReference and @JsonBackReference to map my bidirectional relationship, with this I was able to eliminate the infinite loop bug, but it led to another problem. I have…
-
0
votes1
answer3709
viewsJSON Data format
Hello personal I have a webservice that should fetch some infections in the database and return a json object and I’m having problems with date. here is the object import…
-
0
votes1
answer2275
viewsJSON parse error
I am developing a web application (Spring) and need to save a date in the database. I made a function Ajax to save the value, but I get the following error: JSON parse error: Can not deserialize…
-
0
votes1
answer4414
viewsCan not deserialize instance of java.util.Arraylist out of START_OBJECT token
Using angular, I am unable to insert an array of genres into the Genero property that is in the Manga object. Using Postman to insert the Generos array into the /sleeve API would look like this. {…
-
0
votes1
answer285
viewsJackson and json array
All right, guys? I’ve been racking my brain for a few days now but to no avail. I need to insert in the BD information that comes through JSON. It turns out that when an array comes, it doesn’t want…
-
0
votes1
answer416
viewsError with.fasterxml.Jackson.databind.Jsonmappingexception
Error shown: 04-25 14:01:32.589: I/Recebendo pela rede(31129):…
-
0
votes1
answer89
viewsHow to mount a Json with Jackson having the model classes?
I have the following classes: public class OnesignalRequestModel { private String app_id; private List<IDModelJson> include_player_ids; private ContentJsonModel content; public String…
-
0
votes0
answers75
views -
-1
votes1
answer35
viewsDeserialize an Object of Another
I’m trying to deserialize three DTOS classes to export to a JSON file, I was able to do much of the process but when I try to export one class inside another I can’t. follows the following…
-
-1
votes1
answer28
viewsSpring: how Jackson can format a composite Json response into objects
Well, I’m doing a Spring project along with Spring-cloud-openFeign for integration with a Fipe api to access car values. See the class: @Service @FeignClient(name = "FipeService", url =…
-
-1
votes0
answers14
viewsJackson XML serialization with the root tag for an abstract class
I have an application and need to serialize an XML with different tags at the root. I implemented a test case with the following password, through the same input I can insert two types of XML…