JsonEncode
class JsonEncode extends Mutator (View source)
Encode a value into a JSON string.
Throws an exception if the value cannot be encoded.
Methods
__construct(int $flags = 0, int $depth = 512)
No description
static JsonEncode
make(int $flags = 0, int $depth = 512)
No description
mixed
mutate(mixed $value)
Mutate the input value.
static JsonEncode
pretty(int $flags = 0, int $depth = 512)
No description
Details
__construct(int $flags = 0, int $depth = 512)
No description
static JsonEncode
make(int $flags = 0, int $depth = 512)
No description
mixed
mutate(mixed $value)
Mutate the input value.
static JsonEncode
pretty(int $flags = 0, int $depth = 512)
No description