add option serializeNull to serializer