任何人都知道为什么这个JSON无效?为什么JSON在字符串中逗号无效?
{"street_address":"Stone House Lane, Peckforton
, Tarporley
, London, Cheshire"}
我使用杰克逊Java和它的抱怨
java.lang.IllegalArgumentException: com.fasterxml.jackson.core.JsonParseException: Unexpected end-of-input: was expecting closing quote for a string value
at [Source: [email protected]; line: 1, column: 405]
我注意到这个JSON被认为是无效的这个在线网站,以及: http://jsonviewer.stack.hu/
答:谢谢,对于那些很好奇的人,我已经使用tr -cd'\ 11 \ 12 \ 15 \ 40- \ 176'<删除了这些无法读取的字符> cleanFile
您能否提供导致问题的完整代码片段? –