forEach is not a function error
<p>I get this error when I am trying to iterate through my JSON object with a foreach.
Can someone help, please?</p>

<p>Here is my JS:</p>

<pre><code>function dateTimeChecker() {
     $.ajax({
            "url": 'get-booked.php',
            "method": "get",
            "dataType": "text",
            "cache": false
        }).done(function(jBooked) {
            var jBookedDates=JSON.parse(jBooked);
            console.log(jBookedDates);
               jBookedDates.forEach(function(jB){
                    if (jB=="11/01/2016") {console.log("works");}else{console.log("doesn't");}
        })
      });
}
</code></pre>

<p>And here is the object in question : </p>

<p><a href="https://i.stack.imgur.com/5csV3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5csV3.png" alt="enter image description here"></a></p>

<p>Also, I am wondering how can i iterate over this object if someone cares to explain. :)</p>