Created
December 7, 2011 22:44
-
-
Save oylenshpeegul/1445090 to your computer and use it in GitHub Desktop.
no trailing commas in json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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