1

I am trying to make a JSON-LD like this:

????: {
"@type": "Person",
"jobTitle": "CEO",
"givenName": "Name",
"familyName": "Name",
"email": "mailto:info@example.com"
}

What should I write where the "????" are, if the given information is both for employee, and founder?

unor
  • 92,415
  • 26
  • 211
  • 360
Balázs Orbán
  • 559
  • 1
  • 4
  • 26

1 Answers1

1

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"}

(details and a complete example with @id)

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360