We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
such as JSONArray.toJavaArray(Clazz T),like this:
@Override public void onNext(JSONObject json) { List<Example> examples = json.getJSONObject("examples").toJavaArray(Example.class); }
The text was updated successfully, but these errors were encountered:
JSONArray add metod toJavaList. for issue #922
f948191
public <T> List<T> toJavaList(Class<T> clazz) { List<T> list = new ArrayList<T>(this.size()); ParserConfig config = ParserConfig.getGlobalInstance(); for (Object item : this) { T classItem = (T) TypeUtils.cast(item, clazz, config); list.add(classItem); } return list; }
Sorry, something went wrong.
JSONArray add metod toJavaList. for issue alibaba#922
4ad4b7e
No branches or pull requests
such as JSONArray.toJavaArray(Clazz T),like this:
The text was updated successfully, but these errors were encountered: