Skip to content

(Bug ?) deserialization Class<List<T>> return List<HashMap> #231

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

Closed
mmaryo opened this issue Mar 30, 2019 · 0 comments
Closed

(Bug ?) deserialization Class<List<T>> return List<HashMap> #231

mmaryo opened this issue Mar 30, 2019 · 0 comments

Comments

@mmaryo
Copy link

mmaryo commented Mar 30, 2019

Hello

Is it normal a deserialization of Class<List> return a List

public <T> List<T> deserializeList(String input, Class<T> returnType) {
    Class<List<T>> retType = (Class<List<T>>) ((Class)List.class);
    return JsonIterator.deserialize(input, retType);
}

Is there a method to return List ?

@mmaryo mmaryo closed this as completed Mar 30, 2019
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

1 participant