alibaba / alibaba/fastjson2

使用post方法时,使用requestBody接收数据时,如何将接收的实体中字段值为空字符串的字段转为null

Open
#2,060 8 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

### 请描述您的问题
*询问有关本项目的使用和其他方面的相关问题。*
使用post方法时且使用requestBody接收数据时,如何将接收的实体中字段值为空字符串的字段值转为null

Contributor guide

Open the contributing guide

Research direction

The issue does not name a source file, test, or entry point; it only asks how POST request-body entities can convert empty-string fields to null. Start by locating the request-body deserialization guidance or examples, then document the supported configuration or usage and verify the behavior with a focused example.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.