avoid trailing comma in json