Skip to content

Instantly share code, notes, and snippets.

@oylenshpeegul
oylenshpeegul / gist:1445090
Created December 7, 2011 22:44
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,]'