Deserialization, normalization, validation and the JMS Serializer
- 2017-08-21
- php, jms-serializer, json, yaml, xml, serialization, deserialization, symfony, symfony-form
Serializing can be a not trivial process, but when talking about de-serialization, the problem is even more difficult. The source data (XML or JSON) can be not well formatted, well formatted but not valid or valid syntactically but not valid in our domain. Dividing deserialization, normalization, validation is fundamental.