Re: [jackson-user] JsonMappingException with jackson-databind version 2.8.0 and higher

2017-03-23 Thread Tatu Saloranta
Could you please file an issue for `jackson-databind`. Looks like a bug. -+ Tatu +- On Thu, Mar 23, 2017 at 5:11 PM, Anuj Kumar wrote: > > I am getting an exception with jackson databind version 2.8.0 and later, > everything works fine with any version below 2.8.0. > > Issue

[jackson-user] JsonMappingException with jackson-databind version 2.8.0 and higher

2017-03-23 Thread Anuj Kumar
I am getting an exception with jackson databind version 2.8.0 and later, everything works fine with any version below 2.8.0. Issue is, if I have a property name with an underscore and the letter after it is NOT the same as the first letter, then things blow up. For example I have a Person

Re: [jackson-user] How to use type name as element name

2017-03-23 Thread Tatu Saloranta
On Thu, Mar 23, 2017 at 11:34 AM, Zsolt Balanyi wrote: > Hi! > > Unfortunately none of the approaches worked... XmlBeanSerializerModifier has > a bug, and does not use the provided modifier, even if I override the method > you mentioned. > Could you help me where to

Re: [jackson-user] Ignore property of object in list property of a class

2017-03-23 Thread Tatu Saloranta
Actually it should already be possible to use `@JsonIgnoreProperties` for properties as is, but I think it only affects property value itself, and not contents of containers. But it seems reasonable to assume that since Lists/arrays/Maps do not have properties of their own (except in non-standard

Re: [jackson-user] WRAP_ROOT_VALUE when serializing

2017-03-23 Thread Tatu Saloranta
You can enable/disable `SerializationFeature`s using `ObjectWriter` instead of `ObjectMapper`, like so: byte[] bytes = mapper.writer().with(SerializationFeature.WRAP_ROOT_VALUE) .writeValueAsBytes(pojo); I don't know what support Spring Boot offers for doing this. -+ Tatu +- On Mon, Mar

[jackson-user] Re: Jackson CSV: Edit header at first row of csv

2017-03-23 Thread Silent Jay
You have to annote the properties: public class YourClass { @JsonProperty("ID") public int id; @JsonProperty("Fullname") public String name; } Easiest solution would be to use the same names for the properties of your object as in your csv file but I suppose you have your

Re: [jackson-user] How to use type name as element name

2017-03-23 Thread Zsolt Balanyi
Hi! Unfortunately none of the approaches worked... XmlBeanSerializerModifier has a bug, and does not use the provided modifier, even if I override the method you mentioned. Could you help me where to report the bug? Also where can I find some resources on the architecture of the Jackson