Skip to content

Instantly share code, notes, and snippets.

@zodiac1111
Forked from thekarel/jsonio.js
Created August 22, 2014 05:28
Show Gist options
  • Save zodiac1111/64293adc0b14c28b3b26 to your computer and use it in GitHub Desktop.
Save zodiac1111/64293adc0b14c28b3b26 to your computer and use it in GitHub Desktop.
JSON I/O
// From JSON
var jsObject = JSON.parse(jsonString);
// To JSON
var jsonString = JSON.stringify(foo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment