< Ω Skill Recommendation: Symfony

The Serializer Component

HTL Rennweg

Show in app

Description

Using the serializer component in Symfony to turn objects into a specific format (XML, JSON, YAML, …) and the other way around.

Goals

I know

  • what the Symfony serializer component is
  • which encoders are supported by the serializer by default
  • how to skip null values when using the serializer
  • in which scenarios I want to ignore certain attributes for output
  • what a name converter is

 

I can

  • name use-cases for using the serializer component
  • setup the symfony serializer for my project
  • use the serializer to decode objects in my code
  • use the serializer to encode objects in my code
  • can name use-cases for using attribute groups
  • make use of attribute groups
  • apply at least one method to ignore attributes when serializing
  • make use of a name converter