Bad request as json
Pagination urls in json
Return number of elements