Skip to content

Instantly share code, notes, and snippets.

@thomasfr
Created August 18, 2012 11:08
Show Gist options
  • Save thomasfr/3386122 to your computer and use it in GitHub Desktop.
Save thomasfr/3386122 to your computer and use it in GitHub Desktop.
JSON.stringify example
var testArray = [
{ foo: 'bar',
foo_2: 'bar2',
foo_3: 123,
subobj: { foo_foo: 'barbar' } },
{ foo: 'bar',
foo_2: 'bar2',
foo_3: 123,
subobj: { foo_foo: 'barbar' } },
{ foo: 'bar',
foo_2: 'bar2',
foo_3: 123,
subobj: { foo_foo: 'barbar' } },
{ foo: 'bar',
foo_2: 'bar2',
foo_3: 123,
subobj: { foo_foo: 'barbar' } }
];
console.log(testArray);
JSON.stringify(testArray);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment