I am trying to parse a list of JSON files iteratively. Using PHP I have managed to compile the list of JSON files in a directly into a a single JSON object. Now I would like to parse each of these objects and output a property from each of them in HTML. I am sure that the JSON I am initially passing works. Any ideas? here is the error and the function.

[![enter image description here](https://i.stack.imgur.com/r4JVA.png)](https://i.stack.imgur.com/r4JVA.png)

```
$(document).ready(function(){
    console.log("something")
    for(var i = 2; i < Object.keys(jsTrips).length; i++){
        var data_file = "http://localhos:8080/trips/" + jsTrips[i];
        var currTrip = JSON.parse(data_file)
        document.getElementsByClassName(i).innerHTML = currJSON.start_time;
    }
    console.log("finished") 
});

```

*ignore the missing t in localhost. The problem persists even when the typo is fixed*

Thanks in advance!!

UPDATE:

The Javascript object jsTrips is formatted like this:

```
{2: name.json, 3:name.json, 4:name.json}

```

The the JSON files named in jsTrips are formatted like this:

```
{start_time: some start time, coords: [{lat: ##, long: ##}, {lat: ##, long: ##}...], end_time: some end time}

```