Include pagination information in JSON