Skip to content

Instantly share code, notes, and snippets.

Created February 2, 2011 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save anonymous/808263 to your computer and use it in GitHub Desktop.
Save anonymous/808263 to your computer and use it in GitHub Desktop.
JSON.stringify in CoffeeScript
var json_data = JSON.stringify({
"STATUS_ID is": status,
"COMMAND is": command_str.trim(),
"RESULT is": result_str
},
null, '\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment