Remove trailing comma after last element in object.