jackson serializer handles null correctly