Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
正如评论所说,您的JSON无效。您需要逃脱JSON字符串中的引号:
{"data":"<p><br data-mce-bogus=\"1\"></p>"}
此外,如果您在Java字符串中使用该JSON字面的字样,则必须再次逃脱引号和后背闪烁:
objectMapper.readValue("{\"data\":\"<p><br data-mce-bogus=\\\"1\\\"></p>\"}", Map.class );
As the comment says, your JSON is invalid. You need to escape the quotes inside the JSON string:
Additionally if you use that JSON inside a Java string literal you have to escape the quotes and the backslashes again:
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
正如评论所说,您的JSON无效。您需要逃脱JSON字符串中的引号:
此外,如果您在Java字符串中使用该JSON字面的字样,则必须再次逃脱引号和后背闪烁:
As the comment says, your JSON is invalid. You need to escape the quotes inside the JSON string:
Additionally if you use that JSON inside a Java string literal you have to escape the quotes and the backslashes again: