Serialization and Validation Framework for Objects in REST APIs