Fully Qualified Name: | Laminas\Serializer\Adapter\Json |
Extends: | AbstractAdapter |
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 |
Constructor
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable|\AdapterOptions |
Returns:
Get options
Returns: \JsonOptions
Serialize PHP value to JSON
Parameter Name | Type | Description |
---|---|---|
$value | mixed |
Returns: string
Set options
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable|\JsonOptions |
Returns: \Json
Deserialize JSON to PHP value
Parameter Name | Type | Description |
---|---|---|
$json | string |
Returns: mixed