我正在使用Amazon SDK将文档上传到CloudSearch。该文档被格式化为JSON。当我尝试上传数据时,出现以下错误-
{ ["lexical error: inside a string, '\' occurs before a character which it may not.
attern can be escaped with a \ some\ file will match a file
(right here) ------^
(near operation with index 1; document_id 14266553008620)"] }
我已经使用JSONLint验证JSON文件,并且验证成功。
为什么会这样呢?
通过将单反斜杠替换为双反斜杠(即,文字反斜杠)来解决。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句