I am trying to get the value of the `arrivalTime` from the JSON array `stops` but I am getting this error below

> 
> * Type mismatch: cannot convert from List to 
>  Map
> * arrivalTime cannot be resolved or is not a field
> 
> 
> 

How can I fix it?

I appreciate any help.

**Simple:**

```
[
    {
        "stops": [
                   {
                     "arrival_time": {
                                      "sat": [ "04:41", "05:41","06:09"],
                                      "mon-fri": ["04:24","05:10","05:40"],
                                      "sun": ["07:20","08:20","09:20"]
                                     },
                     "stop_name": "Ravensbusch "
                   }
                ],
        "route": "2",
        "direction": "Bornkamp"
    }
] 

```

**Root class:**

```
public class Root {

    public List<Stops> stops = new ArrayList<Stops>();
    public String route;
    private String direction;

    public static class Stops {

        public Map<String, String[]> arrivalTime = new HashMap<>();
        public String stopsName;

    }
}

```

**Injection class:**

```
public class Injection {

        public static void main(String[] args) throws Exception {
            ObjectMapper mapper = new ObjectMapper();
            InputStream is = Injection.class.getResourceAsStream("/jsonfile.txt");

            List<Root> roots = mapper.readValue(is, TypeFactory.defaultInstance()
                    .constructCollectionType(List.class, Root.class));
            Root root = roots.get(0);

            System.out.println("route: " + root.route);
            //here is the error.
            Map<String, String[]> arrivalTimes = root.stops.arrivalTime;
            for (Map.Entry<String, String[]> entry: arrivalTimes.entrySet()) {
                System.out.println(entry.getKey());
                for (String time: entry.getValue()) {
                    System.out.println(time);
                }
            }
        }
    }

```