Skip to content

Instantly share code, notes, and snippets.

@lotsofcode
Created July 31, 2014 15:23
Show Gist options
  • Select an option

  • Save lotsofcode/92f90fbb5423d6317c8c to your computer and use it in GitHub Desktop.

Select an option

Save lotsofcode/92f90fbb5423d6317c8c to your computer and use it in GitHub Desktop.
JSON format with stringify
JSON.stringify(jsObj, null, "\t"); // stringify with tabs inserted at each level
JSON.stringify(jsObj, null, 4); // stringify with 4 spaces at each level
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment