Decodes JSON data.
- author Sander Coolen
CloneableInstantiable
Constants |
public Symfony True to return the result as an associative array, false for a nested stdClass hierarchy. |
public Symfony True to enable seld/jsonlint as a source for more specific error messages when json_decode fails. |
public Symfony |
public Symfony Specifies the recursion depth. |
Methods |
public __construct(array $defaultContext = []) |
public decode(string $data, string $format, array $context = []) : ?mixed Decodes data.
|
public supportsDecoding(string $format) : bool |
Properties |
private array $defaultContext = ['json_decode_associative' => false, 'json_decode_detailed_errors' => false, 'json_decode_options' => 0, 'json_decode_recursion_depth' => 512] |