Currently it's simple: when it's a single resource (for instance a single user), it uses the hydrator to extract data, and convert to JSON.

If it's a collection, it uses the hydrator specified on Collection annotation (so that you can have different output depending on the context). It uses the hydrator to extract each items, and wrap them under a key called "items". If it's a Paginator, it also outputs three more fields about the pagiantor.

I really went the most easy way on this. But this is easy to override by writing a custom ResourceRenderer. I'll try to write a renderer that outputs json according to [JSONAPI](http://jsonapi.org), but I'm not sure it should be included in ZfrRest.