Fixes #3 extra trailing comma in JSON