i guess this should use the serializer service configured in FOSRestBundle:
https://github.com/FriendsOfSymfony/FOSRestBundle/blob/master/DependencyInjection/Configuration.php#L68