现有如下字符串:
<attachRef><attachInfo><attachName>1.docx</attachName><attachURL>http://10.238.73.135:81/accessories/uploadfile/sheet/complaint/20171226161905.docx</attachURL><attachLength>11670</attachLength></attachInfo></attachRef>
要转成json,格式如下
attachRef=[{"attachName":"啊啊啊.txt","attachPath":"d://1.txt","attachSize":5395},{"attachName":"新建文本文档.txt","attachPath":"2.txt","attachSize":16231}]