Json::encode()
Converts an array to an encoded JSON string
Json::encode($data, bool $pretty = false): string
Parameters
Name | Type | Default |
---|---|---|
$datarequired | mixed |
no default value |
$pretty | bool |
false
|
Return type
string