Copied!

Encodes JSON data.

CloneableInstantiable
Constants
public Symfony\Component\Serializer\Encoder\JsonEncoder::FORMAT = 'json'
Methods
public __construct(?Symfony\Component\Serializer\Encoder\JsonEncode $encodingImpl = NULL, ?Symfony\Component\Serializer\Encoder\JsonDecode $decodingImpl = NULL, array $defaultContext = [])
public decode(string $data, string $format, array $context = []) : ?mixed
public encode(?mixed $data, string $format, array $context = []) : string
public supportsDecoding(string $format) : bool
public supportsEncoding(string $format) : bool
Properties
private array $defaultContext = ['json_decode_associative' => true]
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration