[jboss-jira] [JBoss JIRA] (WFLY-5479) rest api mashall to json default not ignore null fileds
    henry hu (JIRA) 
    issues at jboss.org
       
    Wed Oct  7 00:54:00 EDT 2015
    
    
  
     [ https://issues.jboss.org/browse/WFLY-5479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
henry hu updated WFLY-5479:
---------------------------
    Summary: rest api mashall to json default not ignore null fileds  (was: Json mashall default not ignore null fileds)
> rest api mashall to json default not ignore null fileds
> -------------------------------------------------------
>
>                 Key: WFLY-5479
>                 URL: https://issues.jboss.org/browse/WFLY-5479
>             Project: WildFly
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 10.0.0.Beta1, 10.0.0.Beta2, 10.0.0.CR1, 10.0.0.CR2
>            Reporter: henry hu
>            Assignee: Kurt Stam
>              Labels: jboss
>
> mashall  object to Json default not ignore null fileds,but mashall to xml is ok ;
> "user": {
>     "id": 26357,
>     "gameId": null,
>     "userIds": null,
>     "userName": "testn008",
>     "status": 1,
>     "password": null,
>     "payPassword": null,
>     "qq": null,
>     "email": null,
>     "userType": 16,
>     "level": 0,
>     "subCompany": null,
>     "majorShareholder": null,
>     "sharehoder": null,
>     "majorAgent": null,
>     "agent": null,
>     "nickName": "sdfs",
>     "cellPhoneNumber": null,
>     "createTime": "2015-05-08 20:32:37",
>     "currency": "CNY",
>     "registerIp": "127.0.0.1",
>     "lastLoginIP": "127.0.0.1",
>     "lastLoginTime": 1444146936000,
>     "roles": [],
>     "roleIds": [],
>     "userCount": 0,
>     "fromId": null,
>     "fromUrl": null,
>     "hasUpdatePwd": 1,
>     "isSpread": 0,
>     "spreadType": null,
>     "parentUserName": null,
>     "memberCnt": null,
>     "serverTime": "2015-10-06 23:58:40"
>   },
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
    
    
More information about the jboss-jira
mailing list