You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Getter
@Setter
public class Test{
private Date lastLoginTime;
}
@SneakyThrows
public static void main(String[] args) {
JSONObject results = new JSONObject();
Test test = new Test();
test.setLastLoginTime(DateUtils.parseDate("2024-09-20 14:54:35","yyyy-MM-dd HH:mm:ss"));
results.put("test", test);
System.out.println(results.toString());
}
请描述您的问题
询问有关本项目的使用和其他方面的相关问题。
我在fastjson的1.2.83版本和2.0.53分别执行了以下代码:
fastjson1.x的返回:
{"test":{"lastLoginTime":1726815275000}}
fastjson2.x的返回:
{"test":{"lastLoginTime":"2024-09-20 14:54:35"}}
请问上述返回,我要怎么做才能和fastjson1.x返回一致?
The text was updated successfully, but these errors were encountered: