[jackson-user] Re: Object Mapper from managed bean POJO to JSON

2016-12-14 Thread Literate Aspects
On Wednesday, December 14, 2016 at 11:44:46 PM UTC-8, Literate Aspects wrote: > > Hello, I have not seen HOW any data is retrieved from the MODEL -- IF > there is no reference to the managed bean that connects the remote MySQL > data source. > > How can there be an Object Mapping without any

Re: [jackson-user] Type info is not serialized when a @JsonTypeInfo element is a part of a collection or map

2016-12-14 Thread Tatu Saloranta
The reason for (4) is the good old Java Type Erasure. What you writing out is essentially `Map`, as far as available type information tells -- there is nothing that could tell otherwise. So as general rule: - Do not serialize generic values as root value, if possible. o but if you do, you

[jackson-user] serializing POJOs

2016-12-14 Thread Literate Aspects
Hello, has anyone had experience with http://wiki.fasterxml.com/JacksonDataBinding Can Jackson or another product that you produce, help me with using a bean to data bind as JSON? JSF managed bean accessing MySQL remote database - how to create JSON array to feed