jsonjsonlint

JSON Lint throwing parsing error


JSON Lint throwing parsing error for following string. I am saying it as string because, i got this data in string format and then I generate this code. Isn't it a valid JSON? Please help

 [
        ​{
            "x": "57",
            "y": "30",
            "z": "20",
            "name": "xyz"
        },
        {
            "x": "0",
            "y": "0",
            "z": "20",
            "name": "ss"
        }
    ]

Solution

  • That would be valid JSON if it didn't have an invisible character (a zero-width space) just prior to the first {. It's that character, U+200B, that the parser is choking on.