Here is my code:
<script type="text/javascript" 
src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js">
</script>
<script>
    $(function() {
        var thing = [];
        var bar = $.getJSON('C:\Users\cccompro\foo.json', function(obj) {
            for (i = 0; i < obj.length; i++) {
               thing.push(obj[i]);
            }
        });
    });
</script>
I'm not sure why it doesn't work. "foo.json" contains an array of objects.
 
     
    