I am trying to programmatically get the list of fields in a class that will be serialized while using Jackson serializer.
I can write code based on reflection to go over the fields in the class to see which ones are public, have getter/setter, or have Jackson specific annotations, etc. and come up with a list as per the rules followed by Jackson to decide whether a field will be serialized. But there is a good chance that the implementation will be incomplete.
Is there any way using the Jackson library that I can achieve this?
Aucun commentaire:
Enregistrer un commentaire