Class Json

Summary

Fully Qualified Name: Zend\Serializer\Adapter\Json
Extends: AbstractAdapter

Description

Methods

Name Description Defined By
__construct() Constructor AbstractAdapter
getOptions() Get options Json
serialize() Serialize PHP value to JSON Json
setOptions() Set options Json
unserialize() Deserialize JSON to PHP value Json

Method Details

__construct()

Constructor

Parameter Name Type Description
$options array|\Traversable|\AdapterOptions

Returns:

getOptions()

Get options

Returns: \JsonOptions

serialize()

Serialize PHP value to JSON

Parameter Name Type Description
$value mixed

Returns: string

setOptions()

Set options

Parameter Name Type Description
$options array|\Traversable|\JsonOptions

Returns: \Json

unserialize()

Deserialize JSON to PHP value

Parameter Name Type Description
$json string

Returns: mixed

Top