there is already a ZF2 module for https://github.com/schmittjoh/serializer and the Symfony2 serializer is also available as a standalone component (however it does not support groups)