Missing opening php statment
Had an extra comma at the end causing invalid json