2. What is deserialization about?
Its all about coverting a string to an object
• decode: (json, url-encoded, yaml, xml) => array
• denormalize: array => object
3. Where to use deserialization?
• Rest APIs
• Webapplication forms
4. But why not using JMS/Symfony?
• denormalize recursive structure within existing objects
5. Howto use the deserializer?
• define one mapping per class (explicit > implicit)
• 3 methods (getClass, getDenormalizationFactory,
getDenormalizationFieldMappings)
8. What is serialization about?
Its all about coverting a object to a string
• normalize: object => array
• encode: array => (json, url-encoded, yaml, xml)
10. But why not using JMS/Symfony?
• there is no link support
• have a consistent tool on de/serialize
11. Howto use the serializer?
• define one mapping per class (explicit > implicit)
• 4 methods (getClass, getNormalizationType,
getNormalizationFieldMappings,
getNormalizationEmbeddedFieldMappings,
getNormalizationLinkMappings)