First feature implementation to serialize a custom object in JSON object