Fix Jackson @JSONView when using XML serialization

Issue: SPR-12149