JSON.NET解析错误(JSON.NET parsing error)

编程入门 行业动态 更新时间:2024-10-24 23:29:07
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.

更多推荐

本文发布于:2023-07-27 17:47:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1293567.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   NET   JSON   parsing   error

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!