Closed zehawki closed 3 months ago
No error alert is displayed when only "" is entered in the editor. Surely this is not valid json, or?
""
Similar this [""] also doesnt give an error.
[""]
An empty string "" is indeed valid JSON.
Maybe you're confusing an empty string vs a string containing an empty string?
JSON.parse('') // Error JSON.parse('""') // Returns the parsed, empty string ''
No error alert is displayed when only
""
is entered in the editor. Surely this is not valid json, or?Similar this
[""]
also doesnt give an error.