You can't even generally generate the code.
If it were consistent:
If next/prev and current/first/last were always URIs
if the information was aways on a page, perhaps if the collection was of type _CollectionPage_ rather than having CollectionPage be of type _Collection_.
If it disallowed Link objects.
Then I could easily build a pagination system around it where:
var page = loads(json)
var next = resolve(page.next)
var items = page.items
and we're done.
10/