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
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,
>
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
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
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