Re: [jackson-user] Unable to control precision while serializing BigDecimal or Double

2019-04-17 Thread Tatu Saloranta
On Tue, Apr 16, 2019 at 9:18 PM Navish Sharma wrote: > > While serializing an object containing Double or BigDecimal values, is there > a option to control the precision while serializing? I understand that the > setters within the object can be a good option to control the rounding off >

Re: [jackson-user] jsonFactory.createParser eagerly reads from the InputStream to detect the encoding

2019-04-17 Thread Tatu Saloranta
On Wed, Apr 17, 2019 at 6:34 PM Artashes Aghajanyan wrote: > > I noticed the following behavior that feels like a bug to me, but I want to > confirm if it's not by design before opening an issue in github. > > jackson-databind-2.4.3 > > Consider the following code fragment: > > ByteBuf in = ...

[jackson-user] jsonFactory.createParser eagerly reads from the InputStream to detect the encoding

2019-04-17 Thread Artashes Aghajanyan
I noticed the following behavior that feels like a bug to me, but I want to confirm if it's not by design before opening an issue in github. jackson-databind-2.4.3 Consider the following code fragment: ByteBuf in = ... // a bytebuf containing multiple jsons, e.g.

Re: [jackson-user] de/serialization of nested maps

2019-04-17 Thread Tatu Saloranta
On Wed, Apr 17, 2019 at 9:02 AM Chris C wrote: > > On Tuesday, April 16, 2019 at 5:05:14 PM UTC-4, Tatu Saloranta wrote: >> >> On Tue, Apr 16, 2019 at 1:05 PM Chris C wrote: >>> >>> I have a map of type >>> >>> Map> >>> >>> that I want to serialize to json to store in as a field in a database

Re: [jackson-user] de/serialization of nested maps

2019-04-17 Thread Chris C
On Tuesday, April 16, 2019 at 5:05:14 PM UTC-4, Tatu Saloranta wrote: > > On Tue, Apr 16, 2019 at 1:05 PM Chris C > > wrote: > >> I have a map of type >> >> Map> >> >> that I want to serialize to json to store in as a field in a database >> record. >> >> Key1 and Key2 are my own classes with