JsonDecoderTrait
Wraps json_decode() and converts decoding failures to JsonException.
Tags
Table of Contents
Methods
- jsonDecode() : mixed
- json_decode which throws exception on error.
Methods
jsonDecode()
json_decode which throws exception on error.
public
static jsonDecode(string $json[, bool $associative = false ][, int $depth = 512 ][, int $flags = 0 ]) : mixed
Parameters
- $json : string
- $associative : bool = false
- $depth : int = 512
- $flags : int = 0