I have a partial JSON object - it's a log that got terminated too early. I can see tools like vscode etc. can parse the partial JSON - eg, the top of the vscode window shows:
file.js > item > subitem > subitem > 3 > subitem
when I'm inside a nested object.
How I can automatically terminate the unterminated JSON? I could obviously manually match every unclosed bracket but given the size of the object that's obviously time consuming.