google / google/gson

Allow ExclusionStrategy by field value.

Open
#459 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
24.2k
Forks
4.5k
Avg merge
6d 4h
Merged PRs (30d)
12

Description

```
When implementing the ExclusionStrategy, in shouldSkip* methods we have access
to the fields attributes but not the fields values.

Might be usefull to be able to filter based on some specific values. So the
idea here is to enhance the ExclusionStrategy to pass not just FieldAttributes
but also the source object itself.
```

Original issue reported on code.google.com by `jean-m...@spaggiari.org` on 3 Jul 2012 at 6:30

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.