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}

bool
supportsEncoding($format)

{@inheritdoc}

bool
supportsDecoding($format)

{@inheritdoc}

Details

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

{@inheritdoc}

Parameters

JsonEncode $encodingImpl
JsonDecode $decodingImpl

bool supportsEncoding($format)

{@inheritdoc}

Parameters

$format

Return Value

bool

bool supportsDecoding($format)

{@inheritdoc}

Parameters

$format

Return Value

bool