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\"}]}]

posted @ 2021-02-03 09:36  tsx1230  阅读(263)  评论(0编辑  收藏  举报