My Schema.org having this code for office hours and that gives me error when I test the URL using https://search.google.com/structured-data/testing-tool
How I can remove this error:
JSON-LD Duplicate key found.
I know where is the problem: opens
, closes
, daysOfWeek
, these items are repeated.
I found this solution, but my problem having different scenario than this.
Please let me know the possible solution, so that I can change the data accordingly.
JSON-LD includes code:
"openingHoursSpecification": {
"@context" : "http://schema.org",
"@type" : "openingHoursSpecification",
"opens" : "11:20 am ",
"closes": " 7:30 pm",
"dayOfWeek": {
"@context" : "http://schema.org",
"@type" : "dayOfWeek",
"name": "Mon"
},
"opens" : "10:20 am ",
"closes": " 7:30 pm",
"dayOfWeek": {
"@context" : "http://schema.org",
"@type" : "dayOfWeek",
"name": "Tue-Wed"
},
"opens" : "9:00 am ",
"closes": " 10:00 pm",
"dayOfWeek": {
"@context" : "http://schema.org",
"@type" : "dayOfWeek",
"name": "Thu"
},
"opens" : "11:00 am ",
"closes": " 4:00 pm",
"dayOfWeek": {
"@context" : "http://schema.org",
"@type" : "dayOfWeek",
"name": "Fri"
},
"opens" : "6:00 am ",
"closes": " 6:00 pm",
"dayOfWeek": {
"@context" : "http://schema.org",
"@type" : "dayOfWeek",
"name": "Sat"
},
"opens" : "10:00 am ",
"closes": " 11:40 pm",
"dayOfWeek": {
"@context" : "http://schema.org",
"@type" : "dayOfWeek",
"name": "Sun"
}},