Closed danielbayley closed 3 months ago
Thanks, but this is a bit out of scope, in general almost every single function here has a type guard that narrows the type, this wouldn't narrow anything, and also all the parsing done for the string is thrown out of the window, which doesn't seem ideal for any scenario.
isValidJSON
Checks if a value is valid JSON.