JsonDecode
class JsonDecode extends Mutator (View source)
Decode a JSON string to an associative array or object. Associative arrays are the default.
Throws a JsonException if the JSON cannot be decoded.
Traits
Methods
__construct(bool $associative = true, int $depth = 512, int $flags = 0)
No description
static JsonDecode
assoc(int $depth = 512, int $flags = 0)
No description
static JsonDecode
make(bool $associative = true, int $depth = 512, int $flags = 0)
No description
mixed
mutate(mixed $value)
Mutate the input value.
static JsonDecode
object(int $depth = 512, int $flags = 0)
No description
Details
__construct(bool $associative = true, int $depth = 512, int $flags = 0)
No description
static JsonDecode
assoc(int $depth = 512, int $flags = 0)
No description
static JsonDecode
make(bool $associative = true, int $depth = 512, int $flags = 0)
No description
mixed
mutate(mixed $value)
Mutate the input value.
static JsonDecode
object(int $depth = 512, int $flags = 0)
No description
protected string
resolveStringInput(mixed $value)
No description