Remove comma at end of json