I have dynamically generated JSON
file with data. Some of the data generate error of an invalid json
:
SyntaxError: JSON.parse: bad control character in string literal at line 34447 column 24 of the JSON data
I located problems and some of these are
"live_href": "http:// http://google.com",
or
"login_pass": "bourdfthuk.midas.admin r3adqerds7one",
I already fixed whitespace at the beginning and end with .trim()
but trim won't remove whitespace in the center of a string.