简体   繁体   English

在JSON中解析XML时出现JSON.parse错误

[英]JSON.parse error when parsing XML inside JSON

Am using JSON.parse() method to parse a string, which contains XML structure inside JSON. 我正在使用JSON.parse()方法来解析一个字符串,该字符串包含JSON中的XML结构。 So am getting the error as like JSON.parse. 所以像JSON.parse一样收到错误。

Do you have any idea, how to use the XML inside the JSON? 您有什么想法,如何在JSON中使用XML?

您可以使用base64进行数据编码,而不会失去数据稳定性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM