Skip to content

Instantly share code, notes, and snippets.

@kerryChen95
Created January 24, 2014 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerryChen95/8591272 to your computer and use it in GitHub Desktop.
Save kerryChen95/8591272 to your computer and use it in GitHub Desktop.
`JSON.parse()` cannot parse string...Notice when parse network response in JSON
JSON.parse('')
// SyntaxError: Unexpected end of input
JSON.parse('vds')
// SyntaxError: Unexpected token v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment