alibaba / alibaba/fastjson2

fastjson1下时间序列化JSON.toJSONString()时间转为时间戳[BUG]

Open
#691 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

原fastjson 1.*版本 JSON.toJSONString() ,JSONObject.toJSONString()等方法对于时间类型默认转成 yyyy-MM-dd hh:mm:ss格式
切换fastjson2.*版本,时间类型转成时间戳

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the difference between fastjson 1.* and fastjson2.* with JSON.toJSONString() and JSONObject.toJSONString() on a time value. Compare the serialized output with the prior yyyy-MM-dd hh:mm:ss format; the issue is done when the intended time representation is restored or the behavior is otherwise clarified.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.