I am trying to make a JSON-LD like this:
????: {
"@type": "Person",
"jobTitle": "CEO",
"givenName": "Name",
"familyName": "Name",
"email": "mailto:[email protected]"
}
What should I write where the "????" are, if the given information is both for employee, and founder?
I think JSON-LD doesn’t allow multiple properties for the same value.
But instead of repeating the data …
"employee": {
"@type": "Person",
"name": "John Doe"
},
"founder": {
"@type": "Person",
"name": "John Doe"
}
… you could define the Person
only one time, give it an URI, and reference this URI as value for employee
and founder
:
"@type": "Person",
"@id": "/team/john-doe#i",
"name": "John Doe"
"employee": {"@id": "/team/john-doe#i"},
"founder": {"@id": "/team/john-doe#i"}