Skip to content

Instantly share code, notes, and snippets.

@hackjutsu
Last active February 12, 2017 19:48
Show Gist options
  • Select an option

  • Save hackjutsu/d7229553f75dce462ab2e6ba52e17f20 to your computer and use it in GitHub Desktop.

Select an option

Save hackjutsu/d7229553f75dce462ab2e6ba52e17f20 to your computer and use it in GitHub Desktop.
JSON object to string and vice versa
var json = '{"result":true,"count":1}';
var obj = JSON.parse(json);
console.log(JSON.stringify(obj));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment