The app I'm developing has an API to fetch a single object that I describe in JSON-LD like so:
{
"@context": {
"@vocab": "https://schema.org/",
"head": "@nest",
"id": { "@id": "identifier" },
"type": { "@id": "name" },
"created_at": { "@id": "dateCreated" },
"updated_at": { "@id": "dateModified" },
"created_by": { "@id": "name" },
"updated_by": { "@id": "name" },
"body": { "@type": "@json", "@id": "_:body" }
}
}
This works well in the Link header for a response containing a single object like:
{
"head": {
"id": "29a28e6a-6ef9-46bd-8981-f929486821cb",
"type": "widget",
"created_by": "theory",
"created_at": "2024-04-26T01:29:49.542Z",
"updated_by": "julie",
"updated_at": "2025-04-23T15:14:51.053Z"
},
"body": {
"username": "Alexandra",
"active": true,
"age": 32
}
}
But I also have a search API that returns an array of objects, all of which comply with this @context. What's the proper JSON-LD incantation usable in a link header to represent an array of objects with the same context as for this single object?