I wanted a different way how flexjson see default properties. For example, i wanted to (1) be able to define a 'strict' way (on class level), where only annotated fields/methods are getting serialized and not all properties. Moreover, i wanted to (2) be able to use my custom annotation instead flexjsons. From the outside, everything should look be the same,
I was able to achieve this by 'hacking' ObjectTransformer - i made a new subclass over default one, that is 'dynamic'. There is a logic before super.transform(object) that dynamically adds includes/excludes, depending on current type and current path (i.e. deepness). btw, to be able to use custom objecttransformer, one must be aware of issue with default transformers: https://sourceforge.net/tracker/?func=detail&aid=3277973&group_id=194042&atid=947842
I would like to have access to pathExpressions in ObjectTransformer somehow.I need it for adding includes/excludes at serilization time, as explained. Of course, if you come to better way how to this, you are more then welcome to share it :)
Would you be so kind to allow this?