Spring MVC 4 + Jackson + LocalDate

I am using Spring MVC 4 with Jackson API for databinding and I am having some issues while using Java 8 Dates, like LocalDate and LocalTime. Here is my Ajax: var response = $.ajax({ url: 'parcela', method: 'POST', data: { formaPagamentoPrazo: t...
more »

2017-02-13 18:02 (1) Answers

Jackson-databind 2.5 converting float to int

What is the alternate of DeserializationFeature.ACCEPT_FLOAT_AS_INT in jackson-databind 2.5, as this deserialization configuration is NOT available in 2.5 (its available since 2.6) Our application is using jackson-databind 2.5, in which we noticed t...
more »

2017-02-13 10:02 (1) Answers

Serialize MongoDB ObjectId to string

I'm connecting to MongoDB from a Spring Boot application using mongo-driver 3.2.2. public List<Document> getNodes() { return mongoDatabase.getCollection("nodes").find().into(new ArrayList<Document>()); } ... @RequestMapping("/nodes...
more »

2017-02-10 15:02 (1) Answers

Use custom jackson mapper on spring boot endpoints

I want to use different jackson ObjectMapper instance ( instead of the one used on other mapped urls ) on endpoints derived from AbstractEndpoints. To clarify the question, I don't want to change or customise the object mapper which is used by diff...
more »

2017-02-10 14:02 (2) Answers

JsonParseException with jsonResponse

Not able to parse the json I get from my service. I'm using Jackson API to parse the json. I'm getting JsonParseException: com.fasterxml.jackson.databind.JsonMappingException: Unexpected character ('>' (code 62)): was expecting comma to separat...
more »

2017-02-10 11:02 (1) Answers

Parse JSON with escaped JSON string using Jackson

I need to parse a JSON, which has an escaped JSON string as a value, into a Parcelable object. Reason I have kept it as String is that I have to deffer the parsing of this escaped JSON and the initialization of components related to it. I have succe...
more »

2017-02-09 15:02 (0) Answers

Send JSON data through POST in Java

I have this code to send JSON data (passed as a string) to the server (This code works when English characters are to be sent as values in dataJSON as far as I tested): private static String sendPost(String url, String dataJSON) throws Exception { ...
more »

2017-02-09 13:02 (1) Answers

Apache Johnzon vs Jackson

since Apache released the first final version of Johnzon, it would be really interesting to see if there are already some comparison between Johnzon and FastXML Jackson to see if it is worth to switch. The most important topic is probably the perform...
more »

2017-02-09 13:02 (0) Answers

Issue with deserializing JSON using Jackson

I have such JSON {"body":{"result":[{"crossStateId":1,"raceId":181564,"withOfficer":1,"documents":[{"indexed":0,"documentNumber":"zzz","isMain":1,"documentTypeId":6,"serverId":16,"countryId":327,"useDate":"2017-02-07T19:31:51.000+0000","documentSubT...
more »

2017-02-08 09:02 (2) Answers