Figure out how to create a pagination component given a JSON object