alibaba / alibaba/fastjson2

[QUESTION]

Open
#2,540 2 comments 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

### 请描述您的问题
*询问有关本项目的使用和其他方面的相关问题。*

JSON.register(String.class, new StringToJsonSerializer());
全局配置了无效,必须每个字段上配置:如下
@JSONField(serializeUsing = StringToJsonSerializer.class)
private String client;

springboot3.2 请问下大佬怎么全局配置String类型都按StringToJsonSerializer序列化呢

Contributor guide

Open the contributing guide

Research direction

Start by reading the JSON.register(String.class, new StringToJsonSerializer()) example and the @JSONField(serializeUsing = StringToJsonSerializer.class) usage in the issue. Check the global serializer-registration behavior under Spring Boot 3.2 and determine whether String-wide serialization is supported; done means the supported configuration or limitation is clearly established.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.