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

JSONObject.containsKey判断问题 #3093

Closed
dugenkui03 opened this issue Mar 26, 2020 · 1 comment
Closed

JSONObject.containsKey判断问题 #3093

dugenkui03 opened this issue Mar 26, 2020 · 1 comment
Assignees
Milestone

Comments

@dugenkui03
Copy link

    String jsonStr = "{1:1}";
    JSONObject jsonObject = JSONObject.parseObject(jsonStr);
    System.out.println(jsonObject.containsKey(1));//false
    System.out.println(jsonObject.get(1));//can get value
@wenshao
Copy link
Member

wenshao commented Mar 28, 2020

https://github.com/alibaba/fastjson/releases/tag/1.2.68
问题已修复,请用新版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants