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
version 2.8.5
private void sendFollowerActivity(){ @Data class ActivityPersonAuditResultDTO{private Long actId;private Integer auditStatus;} Long actId = 1906050000052709L; ActivityPersonAuditResultDTO dto = new ActivityPersonAuditResultDTO(); dto.setActId(actId); dto.setAuditStatus(10); String gosn = new Gson().toJson(dto);//gosn is "null" String fastjson = JSON.toJSONString(dto); //fastjson is ok,{"actId":1906050000052709,"auditStatus":10} }
The text was updated successfully, but these errors were encountered:
Local classes are not supported. See #1510 and https://github.com/google/gson/blob/master/UserGuide.md#finer-points-with-objects .
Sorry, something went wrong.
Closing because as mentioned above the issue is that you are using local classes, and there are already other GitHub issues about this problem.
No branches or pull requests
version 2.8.5
The text was updated successfully, but these errors were encountered: