I used Interfaces and it worked

For JSON. No xml serializing.