@@ -540,6 +540,30 @@ There are several types of normalizers available:
540540 The ``JsonSerializableNormalizer ``, ``DateTimeNormalizer `` and
541541 ``DataUriNormalizer `` normalizers were added in Symfony 3.1
542542
543+ Encoders
544+ --------
545+
546+ The Serializer component supports many formats out of the box:
547+
548+ :class: `Symfony\\ Component\\ Serializer\\ Encoder\\ JsonEncoder `
549+ This class encodes and decodes data in JSON _.
550+
551+ :class: `Symfony\\ Component\\ Serializer\\ Encoder\\ XmlEncoder `
552+ This class encodes and decodes data in XML _.
553+
554+ :class: `Symfony\\ Component\\ Serializer\\ Encoder\\ YamlEncoder `
555+ This encoder encodes and decodes data in YAML _. This encoder requires the
556+ :doc: `Yaml Component </components/yaml >`.
557+
558+ :class: `Symfony\\ Component\\ Serializer\\ Encoder\\ CsvEncoder `
559+ This encoder encodes and decodes data in CSV _.
560+
561+ All these encoders are enabled by default when using the Symfony Standard Edition
562+ with the serializer enabled.
563+
564+ .. versionadded :: 3.2
565+ The ``YamlEncoder `` and ``CsvEncoder `` encoders were added in Symfony 3.2
566+
543567Handling Circular References
544568----------------------------
545569
@@ -692,3 +716,7 @@ Learn more
692716.. _`JMS serializer` : https://github.com/schmittjoh/serializer
693717.. _Packagist : https://packagist.org/packages/symfony/serializer
694718.. _RFC3339 : https://tools.ietf.org/html/rfc3339#section-5.8
719+ .. _JSON : http://www.json.org/
720+ .. _XML : https://www.w3.org/XML/
721+ .. _YAML : http://yaml.org/
722+ .. _CSV : https://tools.ietf.org/html/rfc4180
0 commit comments