-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Description
I would like to implement the ability to do the following things while serializing objects:
- Exclude fields that are using default values. I know some people will want to include these fields, but for my use case I would rather only serialize the minimum about of data necessary.
- Exclude empty collections. Same reasoning as above.
- Add ability to set maximum serialization depth. I would like to have the ability to set a maximum object depth for serialization in order to avoid serializing all of a really large object graph. This is because I am attempting to serialize unknown objects that I do not have control over.
- Add ability to set an exclusion list of fields that I do not want serialized.
These seem like general purpose features, but I also understand that you don't want to have feature bloat. Would you guys be open to accepting a pull request like this?
Metadata
Metadata
Assignees
Labels
No labels