Add pagination info to json