Open
Description
I have a json whose properties are sometimes strings and sometimes objects.
example)
[
{
"type": "foo"
},
{
"type": {
"text": "baa",
"detail": "baa means not foo"
}
}
]
Is it possible to create a bean class that can handle this kind of case with gwt-jackson?
If the type property of the loaded json is string, I would like to convert it to an object with { text: "(inject string value)", "detaul": null } and store it in a bean.
It would be nice if I could handle derived classes of com.github.nmorel.gwtjackson.client.JsonDeserializer using JsonDeserialize. . .
Metadata
Assignees
Labels
No labels