Skip to content

Instantly share code, notes, and snippets.

@oylenshpeegul
Created December 7, 2011 22:44
Show Gist options
  • Save oylenshpeegul/1445090 to your computer and use it in GitHub Desktop.
Save oylenshpeegul/1445090 to your computer and use it in GitHub Desktop.
no trailing commas in json
$ perl -MJSON -E 'say encode_json [1, 2, 3,]'
[1,2,3]
$ python -c 'import json; print(json.dumps([1, 2, 3,]))'
[1, 2, 3]
$ ruby -r json -e 'puts [1, 2, 3,].to_json'
[1,2,3]
$ coffee -e 'console.log [1, 2, 3,]'
[ 1, 2, 3 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment