remove a trailing , at the last method in the serializer