title: Uncaught SyntaxError: Unexpected token o in JSON at position 1 error
body: <p>I would like to add some features wherein when you select an event option it will render a list below the calendar. I have used select option and when it change values it will populate a list. I am using jQuery and JSON file this is the code, but it return an error.</p>
  
  <pre><code>JSON format example: {
      "title": "",
      "start": "",
      "tags": "",
      "imageurl": "",
      "products": [
        {
          "name": "",
          "url": "",
          "time": "",
          "location": ""
        }
  
       ]
       }
  </code></pre>
  
  <blockquote>
    <p>VM66:1 Uncaught SyntaxError: Unexpected token o in JSON at position 1
            at JSON.parse ()
            at Object.success (eventcalendarjson.html:610)
            at n (jquery.min.js:2)
            at Object.fireWith [as resolveWith] (jquery.min.js:2)
            at w (jquery.min.js:4)
            at XMLHttpRequest.d (jquery.min.js:4)</p>
  </blockquote>
  
  <pre><code>$("#search").change(function () {
          $("html, body").animate({ scrollTop: $(".calendar").offset().top }, 1500);
          var selectedEvent = $("#search").val();
  
          $.getJSON('events.json', function (data) {
              var ourData = JSON.parse(data);
              render(selectedEvent, ourData);
          });
      });
  
      function render(selectedEvent, data) {
          $(".order-details-table").empty();
          $(data).each(function (i, v) {                
              if (selectedEvent == 'all' || v.tags == selectedEvent) {
                  if (v.products)
                      $(v.products).each(function (index, p) {
                          $(".order-details-table").append('&lt;tr&gt;&lt;td class="o-box-name"&gt;&lt;a name="detailsevent"&gt;' + p.name + '&lt;/a&gt;&lt;/td&gt;&lt;td class="o-box-name"&gt;' + v.title + '&lt;br&gt;&lt;small&gt;' + p.time + '&lt;/small&gt;&lt;small&gt;&amp;nbsp' + p.location + '&lt;/small&gt;&lt;/td&gt;&lt;td&gt;&lt;a href="' + p.url + '" class="cancel-del-text" target=_"blank"&gt;Register!&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;');
                      });
              }                
          });
      }
  </code></pre>