Pagination using Json RPC?

Hey All

I am working on a angular apps that simply fetches customer shipment . i was able to fetch customer shipments . it first fetch id using search and the read the data from that id using read. I was thinking is there some how I could limit the id to 5 records and on next request it shows next 5 id on 2nd page

The method has limit and offset parameter which could be used for pagination. But you must ensure to use a predictive order to avoid duplicates or missing records. Also it is not safe against new record being inserted.

But there is a safer way to do pagination as explained in Issue 4522: Better pagination than offset - Tryton issue tracker
It is not supported yet by Tryton’s clients but you may be able to implement it on your application.