public function setOptions(array $options = [])
    {
        $options += [
            'maxMemberDepth' => self::DEFAULT_MAX_MEMBER_DEPTH,
            'maxPayloadSize' => self::DEFAULT_MAX_PAYLOAD_SIZE,
            'maxMembers' => self::DEFAULT_MAX_MEMBERS,
            'maxValueLength' => self::DEFAULT_MAX_STRING_LENGTH
        ];
        $this->maxMemberDepth = $options['maxMemberDepth'];
        $this->maxPayloadSize = $options['maxPayloadSize'];
        $this->maxValueLength = $options['maxValueLength'];
        $this->maxMembers = $options['maxMembers'];
    }