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

[BUG] JSONArray.getString with Date type #2596

Open
Cooper-Zhong opened this issue May 18, 2024 · 1 comment
Open

[BUG] JSONArray.getString with Date type #2596

Cooper-Zhong opened this issue May 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Cooper-Zhong
Copy link

问题描述

Issue1446.java 在使用fastjson-1.2.83和fastjson2-2.0.50正常,Issue1446.java参考的fastjson包应该是1.2.83,但使用fastjson compatible 2.0.50时还是出现 #1446 的问题,判断是兼容包中JSONArray依旧加了双引号

环境信息

  • OS信息: [MacOS 12.7.4 M1 Pro 16 GB]
  • JDK信息: [Openjdk 17.0.6]
  • 版本信息:[Fastjson compatible 2.0.50]

重现步骤

Issue1446.java 使用fastjson 2.0.50

相关日志输出

Expected :"2024-05-18"
Actual :2024-05-18

@Cooper-Zhong Cooper-Zhong added the bug Something isn't working label May 18, 2024
@15102552479
Copy link

请问fastjson2转json,时间类型怎么转yyyy-MM-dd HH:mm:ss的格式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants