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
Map map=new HashMap<>(); map.put("a",1); map.put("b",2); String json=mGson.toJson(map); Map result=mGson.fromJson(json,Map.class);
result中的a值为1.0,b为2.0
The text was updated successfully, but these errors were encountered:
小伙子,你这个问题跟框架好像没啥关系吧?
Sorry, something went wrong.
框架只能帮你处理容错的问题,这个问题不属于 Json 容错的范畴之内。
No branches or pull requests
Map map=new HashMap<>();
map.put("a",1);
map.put("b",2);
String json=mGson.toJson(map);
Map result=mGson.fromJson(json,Map.class);
result中的a值为1.0,b为2.0
The text was updated successfully, but these errors were encountered: