What the correct way to implement https://schema.org/GenderType for https://schema.org/Person in JSON-LD.
I Attempted bellow:
{
"@context": "http://schema.org",
"@type": "Person",
"givenName": "First Name",
"familyName": "Last name",
"gender": {
"@type": "GenderType",
"gender" "Male"
}
}
The following works:
{
"@context": "http://schema.org",
"@type": "Person",
"givenName": "First Name",
"familyName": "Last name",
"gender": "Male"
}
Though that would use https://schema.org/Text
An other solution:
{
"@context": "http://schema.org",
"@type": "Person",
"givenName": "First Name",
"familyName": "Last name",
"gender": "https://schema.org/Male"
}
Seems to be valid at https://search.google.com/structured-data/testing-tool Though not sure if that how it mean to be implemented.