79640282

Date: 2025-05-27 10:32:13
Score: 1
Natty:
Report link

I'd like to make mention of the useful "jsonrepair" npm library. It solves a number of issues with unparsable JSON, including control characters as presented in this issue:

import { jsonrepair } from 'jsonrepair';

let s = '{"adf":"asdf\tasdfdaf"}';
JSON.parse(jsonrepair(s));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: weaponforge