如下一串字符串,根據(jù) logID、sign、IP、時(shí)間、方法、類型、消息作為key,轉(zhuǎn)成 Dictionary<string, object>{"logID":"7","sign":"9914df154c1b0f2843849c6b07eead8c","IP":"127.0.0.1","時(shí)間":"2018/1/12 11:06:43","方法":"SapDataService.CommonService.GetBusinessData","類型":"響應(yīng)","消息":"{"d":{"results":[{"__metadata": {"type":"jkh","uri":"666)"},"DocEntry":2859,"DocNum":1819,"CardCode":"V010394","CardName":"XXXX有限公司","NumAtCard":"46","Comments":"666","PurchaseDelivery1":{"__deferred":{"uri":"fdgdf"}}}]}}"}
1 回答

aluckdog
TA貢獻(xiàn)1847條經(jīng)驗(yàn) 獲得超7個(gè)贊
這個(gè)地方會(huì)把字符串中斷掉.后面的雙引號(hào)就已經(jīng)是字符串結(jié)束了.所以是錯(cuò)誤的.
這個(gè)字符串應(yīng)該是被拼接出來(lái)的.生成這個(gè)json字符串的時(shí)候.用json序列化一下.
添加回答
舉報(bào)
0/150
提交
取消