Json串压缩转义

1、登陆地址:https://www.bejson.com/

2、 压缩前:[{ "domainid": "00000000000111", "billtype": "1", "formno": "2021000100006", "formid": "1A3046838CAE46A4840266D4CE0DC563", "createuserno": "zhangsan", "createusername": "createusername", "deptno": "0103", "deptname": "财务部", "contractno": "abc0001", "contractname": "付款合同001", "contractbalance": "30000000", "relatedunitname": "神舟软件", "reason": "报销办公费", "budgetinfo": [{ "budgetid": "01001001", "budgetname": "办公费", "budgetno": "01001001", "budgetyear": "2021", "budgettype": "FeiYong", "hsdw": "000012", "hsdwmc": "物流事业账套" }], "expenditureinfo": [{ "expenditureid": "01001001", "expenditurename": "办公费1", "expenditurecash": "100" }, { "expenditureid": "01001002", "expenditurename": "办公费2", "expenditurecash": "200" }], "taskinfo": [{ "taskid": "01001001", "taskname": "办公费", "taskcash": "100" }, { "taskid": "01001001", "taskname": "办公费", "taskcash": "200" }], "offsetinfo": [{ "formno": "20210100003", "formcash": "30000", "offsetcash": "30000", "bccd": "100" }, { "formno": "20210100003", "formcash": "30000", "offsetcash": "30000", "bccd": "100" }], "postponecash":"300", "payeeinfo": [{ "TendererNo": "zhangsan", "TendererName": "张三", "payway": "入银行卡", "Remittee": "中国电信", "RemitteeBank": "工行", "RemitteeAccount": "1001200230034002", "cash": "100" }, { "TendererNo": "zhangsan", "TendererName": "张三", "payway": "入银行卡", "Remittee": "中国电信", "RemitteeBank": "工行", "RemitteeAccount": "1001200230034002", "cash": "100" }] }, { "domainid": "00000000000111", "billtype": "1", "formno": "2021000100006", "formid": "1A3046838CAE46A4840266D4CE0DC563", "createuserno": "zhangsan", "createusername": "createusername", "deptno": "0103", "deptname": "财务部", "contractno": "abc0001", "contractname": "付款合同001", "contractbalance": "30000000", "relatedunitname": "北京神州航天软件技术有限公司", "reason": "报销办公费", "budgetinfo": [{ "budgetid": "01001001", "budgetname": "办公费", "budgetno": "01001001", "budgetyear": "2021", "hsdw": "000012", "hsdwmc": "物流事业账套" }], "expenditureinfo": [{ "expenditureid": "01001001", "expenditurename": "办公费1", "expenditurecash": "100" }, { "expenditureid": "01001002", "expenditurename": "办公费2", "expenditurecash": "200" }], "taskinfo": [{ "taskid": "01001001", "taskname": "办公费", "taskcash": "100" }, { "taskid": "01001001", "taskname": "办公费", "taskcash": "200" }], "offsetinfo": [{ "formno": "20210100003", "formcash": "30000", "offsetcash": "30000", "bccd": "100" }, { "formno": "20210100003", "formcash": "30000", "offsetcash": "30000", "bccd": "100" }], "postponecash":"300", "payeeinfo": [{ "TendererNo": "zhangsan", "TendererName": "张三", "payway": "入银行卡", "Remittee": "中国电信", "RemitteeBank": "工行", "RemitteeAccount": "1001200230034002", "cash": "100" }, { "TendererNo": "zhangsan", "TendererName": "张三", "payway": "入银行卡", "Remittee": "中国电信", "RemitteeBank": "工行", "RemitteeAccount": "1001200230034002", "cash": "100" }] }]

压缩转义后:

[{\"domainid\":\"00000000000111\",\"billtype\":\"1\",\"formno\":\"2021000100006\",\"formid\":\"1A3046838CAE46A4840266D4CE0DC563\",\"createuserno\":\"zhangsan\",\"createusername\":\"createusername\",\"deptno\":\"0103\",\"deptname\":\"财务部\",\"contractno\":\"abc0001\",\"contractname\":\"付款合同001\",\"contractbalance\":\"30000000\",\"relatedunitname\":\"神舟软件\",\"reason\":\"报销办公费\",\"budgetinfo\":[{\"budgetid\":\"01001001\",\"budgetname\":\"办公费\",\"budgetno\":\"01001001\",\"budgetyear\":\"2021\",\"budgettype\":\"FeiYong\",\"hsdw\":\"000012\",\"hsdwmc\":\"物流事业账套\"}],\"expenditureinfo\":[{\"expenditureid\":\"01001001\",\"expenditurename\":\"办公费1\",\"expenditurecash\":\"100\"},{\"expenditureid\":\"01001002\",\"expenditurename\":\"办公费2\",\"expenditurecash\":\"200\"}],\"taskinfo\":[{\"taskid\":\"01001001\",\"taskname\":\"办公费\",\"taskcash\":\"100\"},{\"taskid\":\"01001001\",\"taskname\":\"办公费\",\"taskcash\":\"200\"}],\"offsetinfo\":[{\"formno\":\"20210100003\",\"formcash\":\"30000\",\"offsetcash\":\"30000\",\"bccd\":\"100\"},{\"formno\":\"20210100003\",\"formcash\":\"30000\",\"offsetcash\":\"30000\",\"bccd\":\"100\"}],\"postponecash\":\"300\",\"payeeinfo\":[{\"TendererNo\":\"zhangsan\",\"TendererName\":\"张三\",\"payway\":\"入银行卡\",\"Remittee\":\"中国电信\",\"RemitteeBank\":\"工行\",\"RemitteeAccount\":\"1001200230034002\",\"cash\":\"100\"},{\"TendererNo\":\"zhangsan\",\"TendererName\":\"张三\",\"payway\":\"入银行卡\",\"Remittee\":\"中国电信\",\"RemitteeBank\":\"工行\",\"RemitteeAccount\":\"1001200230034002\",\"cash\":\"100\"}]},{\"domainid\":\"00000000000111\",\"billtype\":\"1\",\"formno\":\"2021000100006\",\"formid\":\"1A3046838CAE46A4840266D4CE0DC563\",\"createuserno\":\"zhangsan\",\"createusername\":\"createusername\",\"deptno\":\"0103\",\"deptname\":\"财务部\",\"contractno\":\"abc0001\",\"contractname\":\"付款合同001\",\"contractbalance\":\"30000000\",\"relatedunitname\":\"北京神州航天软件技术有限公司\",\"reason\":\"报销办公费\",\"budgetinfo\":[{\"budgetid\":\"01001001\",\"budgetname\":\"办公费\",\"budgetno\":\"01001001\",\"budgetyear\":\"2021\",\"hsdw\":\"000012\",\"hsdwmc\":\"物流事业账套\"}],\"expenditureinfo\":[{\"expenditureid\":\"01001001\",\"expenditurename\":\"办公费1\",\"expenditurecash\":\"100\"},{\"expenditureid\":\"01001002\",\"expenditurename\":\"办公费2\",\"expenditurecash\":\"200\"}],\"taskinfo\":[{\"taskid\":\"01001001\",\"taskname\":\"办公费\",\"taskcash\":\"100\"},{\"taskid\":\"01001001\",\"taskname\":\"办公费\",\"taskcash\":\"200\"}],\"offsetinfo\":[{\"formno\":\"20210100003\",\"formcash\":\"30000\",\"offsetcash\":\"30000\",\"bccd\":\"100\"},{\"formno\":\"20210100003\",\"formcash\":\"30000\",\"offsetcash\":\"30000\",\"bccd\":\"100\"}],\"postponecash\":\"300\",\"payeeinfo\":[{\"TendererNo\":\"zhangsan\",\"TendererName\":\"张三\",\"payway\":\"入银行卡\",\"Remittee\":\"中国电信\",\"RemitteeBank\":\"工行\",\"RemitteeAccount\":\"1001200230034002\",\"cash\":\"100\"},{\"TendererNo\":\"zhangsan\",\"TendererName\":\"张三\",\"payway\":\"入银行卡\",\"Remittee\":\"中国电信\",\"RemitteeBank\":\"工行\",\"RemitteeAccount\":\"1001200230034002\",\"cash\":\"100\"}]}]

Json串压缩转义

上一篇:Asp.net 生成多个Excel打包zip进行下载(建立在Aspose.Cells.dll生成Excel,建立在ICSharpCode.SharpZipLib.dll打包zip)


下一篇:用 httpClient 连接 https 服务端,不校验证书的 host