Fixes trailing comma in JSON.