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

org.json.JSONObject 问题 #1780

Closed
fireinjava opened this issue Mar 27, 2018 · 0 comments
Closed

org.json.JSONObject 问题 #1780

fireinjava opened this issue Mar 27, 2018 · 0 comments
Labels
Milestone

Comments

@fireinjava
Copy link

    org.json.JSONObject req = new org.json.JSONObject();
    req.put("id", 1111);
    req.put("name", "name11");
    System.out.println(com.alibaba.fastjson.JSON.toJSONString(req)); // 输出"{}"

本来是用com.alibaba.fastjson.JSONObject,误用了org.json.JSONObject时发现这问题。

@wenshao wenshao added the bug label Aug 4, 2018
@wenshao wenshao added this to the 1.2.50 milestone Aug 4, 2018
@wenshao wenshao modified the milestones: 1.2.50, 1.2.51 Aug 19, 2018
Omega-Ariston added a commit to Omega-Ariston/fastjson that referenced this issue Sep 4, 2019
wenshao added a commit that referenced this issue Sep 4, 2019
issue #1780 (支持org.json.JSONObject )的两种解决方案
wenshao added a commit that referenced this issue Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants