This should check against SerializerInterface of JMS. Also it looks like this will not work with the Symfony Serializer as the [the context must be an array](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Serializer/SerializerInterface.php#L30).