Zend\Json\Encoder::encode
Use the JSON encoding scheme for the value specified
Signature
public function encode(mixed
$value,
[bool
$cycleCheck = false,
array
$options] )
Parameters
$value
— mixed- The value to be encoded
$cycleCheck
— object- Whether or not to check for possible object recursion when encoding
$options
— array- Additional options used during encoding
Returns
- string
- The encoded value