How to check a valid json string to parse code example Example: javascript json trypass Uncaught SyntaxError: Unexpected token c in JSON at position 1