Does anyone know why this JSON is invalid?
{"street_address":"Stone House Lane, Peckforton
, Tarporley
, London, Cheshire"}
I use Jackson for Java and complain about
java.lang.IllegalArgumentException: com.fasterxml.jackson.core.JsonParseException: Unexpected end-of-input: was expecting closing quote for a string value
at [Source: java.io.StringReader@6ad16fc1; line: 1, column: 405]
I noticed that this JSON is also considered invalid on this online site:
http://jsonviewer.stack.hu/
Answer: Thank you, for those curious, I deleted these unreadable characters using tr -cd '\ 11 \ 12 \ 15 \ 40- \ 176' <file> cleanFile
source
share