Json
final class Json
JSON encoder and decoder.
Constants
FORCE_ARRAY |
|
PRETTY |
|
ESCAPE_UNICODE |
|
Methods
static string
encode($value, int $flags = 0)
Returns the JSON representation of a value. Accepts flag Json::PRETTY.
static mixed
decode(string $json, int $flags = 0)
Decodes a JSON string. Accepts flag Json::FORCE_ARRAY.
Details
at line 32
static string
encode($value, int $flags = 0)
Returns the JSON representation of a value. Accepts flag Json::PRETTY.
at line 51
static mixed
decode(string $json, int $flags = 0)
Decodes a JSON string. Accepts flag Json::FORCE_ARRAY.
Traits
Static class.