JSON Schema with Multiple Affiliations
-
I have an attorney that has multiple affiliations that I want to mark up with JSON schema. What is the best way to do this?...
Option #1:
"affiliation": "Example 1, Example 2",
Option #2
"affiliation": "Example 1",
"affiliation": "Example 2",Or, is there another way to do this that I haven't considered?
-
Hello,
Your best option would be to follow the format below:
"affiliation": ["example 1", "example 2", "example 3"]
Don't forget to include a comma (,) after the closing bracket if there is another property following this.
Hope this helps!
-
Yes, I agree with Joe. Option 1 is the way to go as option 2 would most likely rewrite the existing Affiliation schema.
-
Just to clarify, my recommended format is not exactly Option 1, but it is close. They need to be sure to encase each individual 'affiliation/example' within it's own set of quotation marks, not just separated by a comma. Without doing so, search engines will see all the affiliations as a single entity rather than individual affiliations. Also, be sure to include all 'affiliations/examples' within brackets [ ]
See how Moz's set up their 'sameAs' schema? This is the format that should be followed.