Reputation: 462
Adding additional entries when a business has more than one phone number or emails, etc., how do you do this in a json-ld file?
It works fine in html, but when I add a second item in json and run it through the validator it return the last one entry, i.e., if I list three phone numbers it return last number.
Upvotes: 3
Views: 3036
Reputation: 21
It's note a valid code, you forget to add "," to the last line for phone tags :
{
"@context": "http://schema.org",
"@type": "Example",
"email": "mailto:[email protected]",
"telephone": [
"+123456789",
"+987654321"
],
}
Upvotes: -1
Reputation: 595
You have to define for example "Telephone" in this way :
{
"@context": "http://schema.org",
"@type": "Example",
"email": "mailto:[email protected]",
"telephone": [
"+123456789",
"+987654321"
]
}
You check your Schema with Google tool checker
Upvotes: 5