javascript if type is json code example Example: javascript json trypass Uncaught SyntaxError: Unexpected token c in JSON at position 1