No need for any configuration, deserialization and serialization will be handled for you.
For deserialization of array without any extra configuration, simply describe it using DocBlock
* @var Product
Custom Conversions To Classes
The difference between Native Conversion is that you take control of deserialization mechanism for specific class. You may call factory method, which will validate correctness of the data or you may provide some default based on your business logic.
Besides you may find it useful when there is a need to make conversion from class to simple type like string or int.
JMS Convertermake use of Converters registered as Converters in order to provide all the conversion types described in Conversion Table. You can read how to register newConverter in Conversion section.
If we want to call bus with given JSON and deserialize productIds to UUID: