alibaba / alibaba/fastjson2

[QUESTION]自定义接口实现序列化与反序列化问题

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

Description

### 没找到自定义序列化和反序列化
*之前V1.X版本支持实现接口com.alibaba.fastjson.parser.deserializer.ObjectDeserializer实现反序列化。*
自从审计到V2.X版本后没找到这个接口类。请知道的大佬指点一下,谢谢
![image](https://user-images.githubusercontent.com/38791046/192538622-aa357d53-bf38-493e-8ea6-2e86283fa9f3.png)

为什么fastjson2 的@JSONField注解只提供了 com.alibaba.fastjson2.annotation.JSONField#writeUsing 属性 而没有提供反序列化的属性呢?怎么自定义反序列化呢?

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by locating the fastjson2 equivalents of com.alibaba.fastjson.parser.deserializer.ObjectDeserializer and com.alibaba.fastjson2.annotation.JSONField#writeUsing, then review existing deserialization extension points; the issue is done only when the supported customization path is established or the requested reverse-serialization option is specified and implemented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.