Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Genric type list support to map to child type JSON mapping #89

Open
notsatyarth opened this issue Oct 5, 2015 · 2 comments
Open

Genric type list support to map to child type JSON mapping #89

notsatyarth opened this issue Oct 5, 2015 · 2 comments

Comments

@notsatyarth
Copy link

I could not figure out if TypeConverter could support such a use case and hence I am raising an issue. Consider the following situation:

@JsonObject
 class A{
         @JsonField
        String aa;
    }
@JsonObject    
class B extends A{
         @JsonField
        String bb;

  }
@JsonObject    
 class C extends A{
         @JsonField
         String cc;
   }

I want to parse my incoming JSON array into List<A> but while fetching them I would like to type cast them as the child classes of B and C and use cInstance.getCc() .Is this possible?

@notsatyarth
Copy link
Author

referencing similar issue and closing duplicate . #21 and #11

@jason-kilic
Copy link

Is there any timeline to support this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants