YEap, clarifying I meant `List<Employee>` ...
# announcements
s
YEap, clarifying I meant
List<Employee>
but if try to print domething. like
println("The firstname is: " + employee2.get(0).firstName)
I get an error:
Copy code
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)