Add support for serializing to json paginated collections
Add tests for json encoding of pagination Pages