remove comma at end of json