Questions tagged as 'jackson'

1
answer

REST Jersey + jackson servlet parsea part of the json as a JsonObject

I am receiving a JSON that jersey + jackson parse it directly on the object that will contain the information. The thing is, I want part of that JSON to be saved as a JSONObject or JSONArray . This would be the JSON that is received, {...
asked by 16.10.2018 / 11:49
2
answers

send JSON from Spring MVC to angularjs

I am trying to communicate spring MVC with angular, I send data from angular to spring but not the other way around, I have a login form, which I collect the data and send it to my JAVA project. This works well, now I intend to return the sam...
asked by 10.01.2017 / 11:52
0
answers

ignore different data type in Jackson

@JsonIgnoreProperties(ignoreUnknown = true) public static class MessageRS { private String errorCode; private String description; private DATA DATA; public MessageRS() { } public MessageRS(Str...
asked by 17.07.2018 / 19:57
1
answer

When I pass a class as an argument and then I want to use it, it says can not be resolved to a type

I am creating a DAO class that what it does for now is to bring to memory lists of objects from a json file. This method receives the name of a class and with that it should bring me the list of objects of that class but when I want to tell it t...
asked by 16.04.2018 / 18:58
1
answer

How to check the content of readValue

You'll see I'm messing around with the NBA API and I have this json in particular link Then I have a Parser class public class Parser { private Map<String, Object> otherProperties = new HashMap<String, Object>();...
asked by 26.09.2017 / 17:15
0
answers

Json does not map an object when it is already in another

I have the following case, an @RestController returns a json that comes from mapping some entities with SpringData, in the service everything returns well (the list that comes from the DB), but when it returns with: return new ResponseEntity&l...
asked by 10.04.2018 / 16:27
1
answer

Recover Json field 2 level of array gson or Jackson

I have a Json with the following format: { "resultado": [ { "columa": [ "p" ], "datos": [ { "row": [ { "oficina": "0000", "entidad": "1234",...
asked by 01.08.2017 / 10:52
1
answer

Jackson FasterXML POJO A XML list

I use FasterXML Jackson to convert a POJO to XML but I want the children of the parent tag in the list to have a different name. How can I do it? ORDEN: @JacksonXmlRootElement(localName = "eOrden") public class Orden { @Jac...
asked by 25.07.2017 / 16:27