title: How to solve the JSON-LD error "Duplicate key found"?
body: <p>My Schema.org having this code for office hours and that gives me error when I test the URL using <a href="https://search.google.com/structured-data/testing-tool" rel="nofollow noreferrer">https://search.google.com/structured-data/testing-tool</a></p>
  
  <p>How I can remove this error: </p>
  
  <blockquote>
    <p>JSON-LD    Duplicate key found.</p>
  </blockquote>
  
  <p>I know where is the problem: <code>opens</code>, <code>closes</code>, <code>daysOfWeek</code>, these items are repeated.</p>
  
  <p>I found <a href="https://nateonawalk.com/how-to-fix-the-duplicate-key-found-structured-data-error/" rel="nofollow noreferrer">this solution</a>, but my problem having different scenario than this.</p>
  
  <p>Please let me know the possible solution, so that I can change the data accordingly.</p>
  
  <p>JSON-LD includes code:</p>
  
  <pre class="lang-json prettyprint-override"><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"
  }},
  </code></pre>