fix fuckup in previous commit: in json, unlike php, a comma after the la...

...st array element is not allowed