Why is JSON invalid?

When you try JSON.parse a string containing JSON this throws out error - https://pastebin.com/raw/xFf8JJEL (extra comma is not necessary to pay attention, accidentally)
Validation in the online validator does not pass (can be straight from your browser to copy, I've checked, the error is reproduced)

How to parse such lines? The original line here in the script tag for JSON-LD https://hiphopdx.com/news/id.53774/title.mc-eiht-s...
April 3rd 20 at 17:35
3 answers
April 3rd 20 at 17:37
Solution
The problem is in the symbol tab, you need to escape it:
const youParsedJsonString = `...`;
const escapeTabCharacter = string => string.replace(/[\t]/g, '\\t');

const objectOfYouJsonString = JSON.parse(escapeTabCharacter(youParsedJsonString));


ste_ta27lthjxsurkmgtsfrcdi8.png
It is, thank you. - Edna.Wuckert commented on April 3rd 20 at 17:40
April 3rd 20 at 17:39
Don't know how you pass the string to JSON.parse, but I have all the rules
Put it in the validator and not to the editor. Obviously, time does not play, then it is not copied as it should. - Edna.Wuckert commented on April 3rd 20 at 17:42
@Edna.Wuckert, @Edna.Wuckert, and what validate you checked? Tried, also rules.
PS. before that checked via json.parse+json.stringify

UPD: in JSONLint caught the error. Also not clear, although js hawala - britney_Konopels commented on April 3rd 20 at 17:45
April 3rd 20 at 17:41
Obviously, the problem in the long gap.
Change encoding back and forth from CP-1251 to UTF-8 and back, will help, most likely.
Yes, the problem is in the gap. Double and triple tabs. Did the replace helped. - Edna.Wuckert commented on April 3rd 20 at 17:44

Find more questions by tags JavaScriptJSON