Skip to content

Instantly share code, notes, and snippets.

@tksohishi
Created October 26, 2010 04:14
Show Gist options
  • Select an option

  • Save tksohishi/646298 to your computer and use it in GitHub Desktop.

Select an option

Save tksohishi/646298 to your computer and use it in GitHub Desktop.
Test for JSON.parse()
var json = "{ hoge: 1 }";
var obj = JSON.parse(json);
console.log(obj.hoge);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment