Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants