Remove extra comma in JSON