Encodes JSON data.
- author Sander Coolen
CloneableInstantiable
Constants |
public Symfony Configure the JSON flags bitmask. |
Methods |
public __construct(array $defaultContext = []) |
public encode(?mixed $data, string $format, array $context = []) : string |
public supportsEncoding(string $format) : bool |
Properties |
private array $defaultContext = ['json_encode_options' => 1024] |