Loads the configuration and transforms the value to a serializable
array.

@return array An array containing the values, ready to be JSON encoded
@api
507946
protected function renderArray()
    {
        $valueToRender = $this->variables;
        unset($valueToRender['settings']);
        $valueToRender['flashMessages'] = $this->renderFlashMessages();
        $valueToRender['validationErrors'] = $this->renderValidationErrors();
        return $this->transformValue($valueToRender, $this->configuration);
    }
1336289
public function toArray() : array
    {
        $output = [];
        foreach ($this->data as $key => $val) {
            $output[$key] = $val instanceof ArraySerializable ? $val->toArray() : $val;
        }
        return $output;
    }
1065395
public function jsonSerialize()
    {
        return [
            'host' => $this->host,
            'uri' => $this->uri,
            'method' => $this->method,
            'headers' => $this->headers,
            'body' => $this->body
        ];
    }
83716
function jsonSerialize()
	{
		return array_map(function ($value) {
			if($value instanceof JsonSerializable)
			{
				return $value->jsonSerialize();
			}
			else if($value instanceof Jsonable)
			{
				return Json::parse($this->toJson(), true);
			}
			else if($value instanceof Arrayable)
			{
				return $value->toArray();
			}
			else
			{
				return $value;
			}
		}, $this->items);
	}
1110607
public function jsonSerialize()
    {
        $data = [
            'title' => $this->title,
            'address' => $this->address
        ];


        $data = array_merge($data, $this->buildJsonAttributes([
            'reply_markup' => $this->replyMarkup
        ]));

        return $data;
    }
115841
public function jsonSerialize()
    {
        $data = array_merge(array(), iterator_to_array($this->attributes()));

        foreach ($this as $key => $element) {
            if (isset($data[$key])) {
                if (is_array($data[$key]) === false) {
                    $data[$key] = [$data[$key]];
                }
                $data[$key][] = $element;
            } else {
                $data[$key] = $element;
            }
        }

        $textContent = trim($this);
        if (strlen($textContent) > 0) {
            if (empty($data) === false) {
                $data['#value'] = $textContent;
            } else {
                $data = $textContent;
            }
        }

        if ((is_array($data) && count($data) === 0) || (is_scalar($data) && strlen($data) === 0)) {
            $data = null;
        }

        return $data;
    }
84659
public function toArray()
    {
        $array = array();
        $data = $this->_data;
        foreach ($data as $key => $value) {
            if ($value instanceof Zend_Config) {
                $array[$key] = $value->toArray();
            } else {
                $array[$key] = $value;
            }
        }
        return $array;
    }
610213
public function jsonSerialize()
    {
        return array(
            self::ID    => $this->getOriginalName(),
            self::LABEL => $this->getOriginalName(),
            self::NAME  => $this->getOriginalName(),
        );
    }
738012
public function toArray()
	{
		return [
			'name' => (string) $this->name,
			'email' => SerializationHelper::serialize($this->email),
			'links' => SerializationHelper::serialize($this->links)
		];
	}
784754
public function jsonSerialize()
    {
        return array(
            self::CONFIG               => $this->config,
            self::DEFINITION           => $this->definition,
            self::METADATA_DAO         => $this->metaDataDAO,
            self::METADATA_DAO_FACTORY => $this->metaDataDAOFactory,
            self::FALSE_DEPENDENCIES   => $this->falseDependencies
        );
    }
55668
public function toArray()
    {
        $result = ['jsonrpc' => '2.0'];
        if ($this->id) {
            $result['id'] = $this->id;
        }
        if ($this->isError) {
            $result['error'] = $this->result;
        } else {
            $result['result'] = $this->result;
        }

        return $result;
    }
560268
public function jsonSerialize()
    {
        return array_filter(
            [
                'enable' => $this->getEnable(),
                'enable_text' => $this->getEnableText()
            ],
            function ($value) {
                return $value !== null;
            }
        ) ?: null;
    }
781817
public function jsonSerialize(): array
    {
        $outObj        = array();
        $outObj['url'] = $this->url;
        if ($this->anchor !== null) {
            $outObj['anchor'] = $this->anchor;
        }
        return $outObj;
    }
712732
public function jsonSerialize()
    {
        return array_filter(
            [
                'type' => $this->getType(),
                'value' => $this->getValue()
            ],
            function ($value) {
                return $value !== null;
            }
        ) ?: null;
    }
904603
public function toArray()
    {
        if ($this->stub) {
            $json = ['stub' => true];
        } else {
            $json = ['data' => $this->getBase64EncodedData()];
            if ($this->contentType) {
                $json['content_type'] = $this->contentType;
            }
        }

        return $json;
    }
712258
public function jsonSerialize()
    {
        if (! Norm::options('include')) {
            return $this->toArray();
        }

        $destination = array();
        $source =  $this->toArray();

        $schema = $this->collection->schema();

        foreach ($source as $key => $value) {
            if (isset($schema[$key]) and isset($value)) {
                $destination[$key] = $schema[$key]->toJSON($value);
            } else {
                $destination[$key] = $value;
            }

            $destination[$key] = JsonKit::replaceObject($destination[$key]);
        }

        return $destination;
    }
337449
public function jsonSerialize(){
		$arrData = array();

		foreach($this as $strKey => $objValue){
			if($this->options($strKey)->json){
				$mixValue = $objValue->jsonSerialize();
				$mixJSON = json_encode($mixValue);
				if((!is_null($mixValue) && $mixJSON!='[]') || $this->options($strKey)->jsonnull){
					$arrData[$strKey] = $mixValue;
				}
			}
		}
		return $arrData;
	}