引用Newtonsoft.Json类
使用string str=JsonConvert.SerializeObject(实体类)转换为字符串时,若实体类中有些字段为空值,那么转换后的Json串回出现空值的情况
比如:
//此处是截取的Json片段
{
"content": {
"checkForm": {
"aircraftNo": null,
"billNo": null,
"checkArea": null,
"checkCustomsCode": "3104",
"checkEndTime": null,
"checkId": "CHECK_ID_20190423164506_VH3i65",
"checkNum": "0",
"checkPersonContactNumber": null,
"checkPersonDept": null,
"checkPersonName": null,
"checkProcIdea": null,
"checkProcResult": null,
"checkRate": null,
"checkRequestTotal": null,
"checkResultTotal": null,
"checkStartTime