alibaba / alibaba/fastjson2

[FEATURE] 提供ContextPropertyFilter接口,类似ContextValueFilter

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

Description

### 请描述您的需求或者改进建议

我希望fastjson能使用自定义注解实现类似@Since @Until来控制字段是否在某个版本序列化

### 请描述你建议的实现方案

提供ContextPropertyFilter接口,提供当前字段的上下文信息,如:ContextValueFilter 接口

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing ContextValueFilter interface and its usage in fastjson2 serialization. Determine what current-field context is needed to support custom annotations that control serialization by version, then define the interface behavior and verify it with serialization cases covering version-based field inclusion.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.