JsonDecode
class JsonDecode implements DecoderInterface
Decodes JSON data.
Constants
ASSOCIATIVE |
True to return the result as an associative array, false for a nested stdClass hierarchy. |
OPTIONS |
|
RECURSION_DEPTH |
Specifies the recursion depth. |
Properties
protected | $serializer |
Methods
__construct($defaultContext = array(), int $depth = 512)
Constructs a new JsonDecode instance.
mixed
decode(string $data, string $format, array $context = array())
Decodes data.
bool
supportsDecoding(string $format)
Checks whether the deserializer can decode from given format.