Description
Serializing classes to JSON that implement a generic interface might fail with a message "duplicate key: <name>".
The problem is that generics add synthetic bridge methods (see http://stas-blogspot.blogspot.nl/2010/03/java-bridge-methods-explained.html ), so there will be two setters for the same property.
Fix this by skipping bridge methods when searching for properties.