alibaba / alibaba/fastjson2

[QUESTION]fastjson2全局配置问题。

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

Description

问题1:怎样使用fastjson2的全局配置时间格式打印是时间戳呢?而不是每个toJSONString都去设置millis。
问题2:使用了JSON.config()设置了全局默认参数后有什么方法不使用吗??我现在某些特殊的数据不需要默认配置,需要手动配置,其他的需要默认配置。

Contributor guide

Open the contributing guide

Research direction

Start by reading the JSON.config() and toJSONString() APIs and their existing configuration documentation. Determine how global timestamp formatting and per-call overrides are intended to work, then document or verify a clear way to bypass global defaults for selected data; the issue names no files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.