Jason
Jason

Reputation: 462

Multiple entries for email, phone, website, etc. in json-ld schema file

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

Answers (2)

TaghaBoy
TaghaBoy

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

Hamed
Hamed

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

Related Questions