java中關(guān)于json字符串的處理求助:如下數(shù)據(jù):{"name":"王大錘","age":"28","city":"杭州市","relation":"{"a":"peter","b":"tom","c":"jack"}","lover":"jenny"}這樣的數(shù)據(jù)json對(duì)象中存放了對(duì)象,在json字符串轉(zhuǎn)換json對(duì)象時(shí),就會(huì)格式報(bào)錯(cuò)。我的解決就是把它單獨(dú)拿出來處理,原來的字符串中替換為空字符串,如下:{"name":"王大錘","age":"28","city":"杭州市","relation":"","lover":"jenny"}現(xiàn)在的問題是如何在其中把?{"a":"peter","b":"tom","c":"jack"} 替換為 "".求助大神們,。。。
java中關(guān)于json字符串的處理求助
weibo_那是什么叨_03580699
2018-01-10 19:14:36