@@ -6,13 +6,11 @@ How to Use the Serializer
66
77Serializing and deserializing to and from objects and different formats (e.g.
88JSON or XML) is a very complex topic. Symfony comes with a
9- :doc: `Serializer Component</components/serializer> `, which gives you some
9+ :doc: `Serializer Component </components/serializer >`, which gives you some
1010tools that you can leverage for your solution.
1111
1212In fact, before you start, get familiar with the serializer, normalizers
13- and encoders by reading the :doc: `Serializer Component</components/serializer> `.
14- You should also check out the `JMSSerializerBundle `_, which expands on the
15- functionality offered by Symfony's core serializer.
13+ and encoders by reading the :doc: `Serializer Component </components/serializer >`.
1614
1715Activating the Serializer
1816-------------------------
@@ -56,15 +54,15 @@ Adding Normalizers and Encoders
5654-------------------------------
5755
5856Once enabled, the ``serializer `` service will be available in the container
59- and will be loaded with two :ref: `encoders<component-serializer-encoders> `
57+ and will be loaded with two :ref: `encoders <component-serializer-encoders >`
6058(:class: `Symfony\\ Component\\ Serializer\\ Encoder\\ JsonEncoder ` and
6159:class: `Symfony\\ Component\\ Serializer\\ Encoder\\ XmlEncoder `)
62- but no :ref: `normalizers<component-serializer-normalizers> `, meaning you'll
60+ but no :ref: `normalizers <component-serializer-normalizers >`, meaning you'll
6361need to load your own.
6462
6563You can load normalizers and/or encoders by tagging them as
66- :ref: `serializer.normalizer<reference-dic-tags-serializer-normalizer> ` and
67- :ref: `serializer.encoder<reference-dic-tags-serializer-encoder> `. It's also
64+ :ref: `serializer.normalizer <reference-dic-tags-serializer-normalizer >` and
65+ :ref: `serializer.encoder <reference-dic-tags-serializer-encoder >`. It's also
6866possible to set the priority of the tag in order to decide the matching order.
6967
7068Here is an example on how to load the
@@ -100,5 +98,3 @@ Here is an example on how to load the
10098 ));
10199 $definition->addTag('serializer.normalizer');
102100 $container->setDefinition('get_set_method_normalizer', $definition);
103-
104- .. _JMSSerializerBundle : http://jmsyst.com/bundles/JMSSerializerBundle
0 commit comments