alibaba / alibaba/fastjson2

[QUESTION]关于FastJsonHttpMessageConverter用法的问题

Open
#1,363 0 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

### 请描述您的问题
使用fastjson2序列化与反序列化接口传递不规范问题,前台传的不规范是对象而非字符串,后台接口使用Map接收参数,但是为null的字段全部舍弃掉,我看了Feature没有找到合适的解决方法,请问这种能通过配置相关的Feature解决吗
![image](https://user-images.githubusercontent.com/35017668/231939737-a19476a0-988b-4790-9f78-17c572885e0d.png)
![image](https://user-images.githubusercontent.com/35017668/231939807-a3be3437-7c24-4896-bba7-acf0d150d11a.png)
![image](https://user-images.githubusercontent.com/35017668/231940165-9c30d4ef-8f7f-49dc-9400-b4a83716a56f.png)

Contributor guide

Open the contributing guide

Research direction

Start with the FastJsonHttpMessageConverter deserialization path described in the issue and reproduce the case where a Map receives an object with null fields. Determine whether the reported null-field behavior is a bug or an available configuration option; done means documenting or testing the supported behavior and identifying the relevant Feature if one exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.