class JsonEncoder extends JsonEncoder (View source)

internal  This encoder should not be used directly. Rather, use the `serializer` service.
 

Adds 'ajax' to the supported content types of the JSON encoder.

Properties

static protected array $format

The formats that this Encoder supports.

Methods

__construct(JsonEncode $encodingImpl = NULL, JsonDecode $decodingImpl = NULL)

{@inheritdoc}

supportsEncoding($format)

{@inheritdoc}

supportsDecoding($format)

{@inheritdoc}

Details

__construct(JsonEncode $encodingImpl = NULL, JsonDecode $decodingImpl = NULL)

{@inheritdoc}

Parameters

JsonEncode $encodingImpl
JsonDecode $decodingImpl

supportsEncoding($format)

{@inheritdoc}

Parameters

$format

supportsDecoding($format)

{@inheritdoc}

Parameters

$format