julman99 / gson-fire

A java library that adds some very useful features to Gson, like Date serializing to unix timestamp or RFC3339, method (getters) serialization, pre/post processors and many others. Check out the documentation to learn how to use it!
http://gsonfire.io
Other
226 stars 36 forks source link

How to exclude a field from serialization? #54

Open lucasctd opened 3 years ago

lucasctd commented 3 years ago

I don't want to serialize a field (a LocalDateTime) to JSON, but your FireExclusionStrategy contract does not have the shouldSkipField as found in the ExclusionStrategy from the original package.

I am following this tutorial -> https://www.baeldung.com/gson-exclude-fields-serialization

Btw, thanks for your great package!