JSON.NET解析错误(JSON.NET parsing error)
我跟随json字符串:
{ "message": "Keine Nachricht mit der Id 55555 gefunden!", "exception": { "__className": "Exception" }, "request": { "__className": "Zend_Controller_Request_Http" } }JObject.Parse()会抛出这个错误:
"Additional text encountered after finished reading JSON content: . Path '', line 1, position 153."这个JSON字符串出了什么问题?
I've following json string:
{ "message": "Keine Nachricht mit der Id 55555 gefunden!", "exception": { "__className": "Exception" }, "request": { "__className": "Zend_Controller_Request_Http" } }JObject.Parse() will throw me this error:
"Additional text encountered after finished reading JSON content: . Path '', line 1, position 153."What is wrong this JSON string?
最满意答案
它在Ruby中为我解析好。 字符串(当它是一条长行)是152个字符,因此之后可能有一个字符。
It parses fine for me in Ruby. The string (when it was one long line) is 152 characters so there may have been a character after that.
更多推荐
发布评论