You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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. . .
The text was updated successfully, but these errors were encountered:
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. . .
The text was updated successfully, but these errors were encountered: