如何从Json响应中删除@Xsi.Type

如何从Json响应中删除@Xsi.Type,json,rest,cxf,jax-rs,Json,Rest,Cxf,Jax Rs,我的REST项目JSONProvider正在反序列化响应,如下所示: { "Recipient": { "defaultAddresses": { "@xsi.type": "endPointAddress", "addr": { "@xsi.type": "emailRecipient", "emailAddress": "abc

我的REST项目JSONProvider正在反序列化响应,如下所示:

{
   "Recipient":
   {
       "defaultAddresses":
       {
           "@xsi.type": "endPointAddress",
           "addr":
           {
               "@xsi.type": "emailRecipient",
               "emailAddress": "abc@xyz.com"
           },
           "type": "EMAIL"
       },
       "localeCode": "en_US",
       "preferredEncoding": "UTF-8",
   }
}
我希望删除JSONprovider设置的“@xsi.type”属性。CXF文档说,我们需要将“writeXsiType”属性设置为“false”。 有人能给我一些建议,我能做些什么吗