skoude
10/12/2016, 12:31 PMList<Employee>
but if try to print domething. like println("The firstname is: " + employee2.get(0).firstName)
I get an error: Exception in thread "main" java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to com.entity.Employee
at com.json.JsonUtils.readJson(JsonUtils.kt:58)
at TestingKt.main(Testing.kt:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)