Re: [jackson-user] Polymorphic Custom Serialization

2019-03-26 Thread Tatu Saloranta
On Tue, Mar 26, 2019 at 12:21 AM Suraj Mathai wrote: > Thanks very much. > > In that case , is there an alternative for something I am trying to > achieve > > class Trade { > >int id; >String trader; > } > > class FX extends Trade { > >double rate; > } > > > Can my json on FX object

Re: [jackson-user] Processing JSON Ref ($ref)

2019-03-26 Thread Tatu Saloranta
On Tue, Mar 26, 2019 at 8:36 PM wrote: > Hi, > > I'm trying to convert: > > { > "real": [ > 1, > 2, > 3, > 4 > ], > "ref": { > "$ref": "#/real" > } > } > > > to > > { > 'real': [ > 1, > 2, > 3, > 4 > ], > 'ref': [ > 1, > 2, > 3, >

[jackson-user] Processing JSON Ref ($ref)

2019-03-26 Thread cnaureus . dev
Hi, I'm trying to convert: { "real": [ 1, 2, 3, 4 ], "ref": { "$ref": "#/real" } } to { 'real': [ 1, 2, 3, 4 ], 'ref': [ 1, 2, 3, 4 ] } May I ask how to I do this with jackson library if this is possible/supported? Thank

Re: [jackson-user] Polymorphic Custom Serialization

2019-03-26 Thread Suraj Mathai
Thanks very much. In that case , is there an alternative for something I am trying to achieve class Trade { int id; String trader; } class FX extends Trade { double rate; } Can my json on FX object have nested fields from a flat object structure. ? Is writing a custom serialiser t

Re: [jackson-user] Polymorphic Custom Serialization

2019-03-26 Thread Suraj Mathai
Thanks On Tue, Mar 26, 2019 at 1:35 PM Tatu Saloranta wrote: > On Mon, Mar 25, 2019 at 5:18 PM Suraj Mathai > wrote: > > > > Hi, > > > > I have Parent Class and Subclasses . Can I customize the serialization > of fields of parent class using ParentClassSerializer and fields of > subclass using