Remove extra comma at end of array items