Pagination links are related resource links and should be grouped under "links" with href objects.
Step 2: Evaluate options for best practice
{
"comments": [...],
"links": {
"next": {"href": "/comments?page=2"},
"prev": {"href": "/comments?page=1"}
}
} groups "next" and "prev" inside "links" as objects with href, matching common REST API patterns.
Final Answer:
Pagination links grouped under 'links' with href objects -> Option A