remove extra comma in JSON