Skip to content

visualFormat为true时 json中为null的没有打印 能打印出来吗 #8

@lvchen1993

Description

@lvchen1993

visualFormat为false时 格式化后
{
"code": "SUCCESS",
"msg": "成功",
"data": {
"id": 8,
"userName": "God",
"nickName": null,
"genderDict": 2,
"genderDictText": "ft+in",
"lenUnitDict": 2,
"lenUnitDictText": null,
"height": 70.00,
"feHeight": 5.00,
"inHeight": 10.00,
"weightUnitDict": null,
"weightUnitDictText": null,
"weight": null,
"birthday": "2016-01-15"
}
}

visualFormat为true时 格式化后
{
"code": "SUCCESS",
"msg": "成功",
"data": {
"id": 8,
"userName": "God",
"genderDict": 2,
"genderDictText": "ft+in",
"lenUnitDict": 2,
"height": 70.00,
"feHeight": 5.00,
"inHeight": 10.00,
"birthday": "2016-01-15"
}
}
有几个为null的未打印

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions