I'm using an API and I'm trying to deserialize the results with Jackson but I always have the same mistake.
I guess my POJO is not right but I can't find what's wrong.
The mistake is on libs
I've tried to declare as String or as List without any success. Any idea ?
{ "libs": {}, "items": [ { "id": "001", "cars": [ "cd1042af-856d-4649-a170-032d15a4119b", "00ed61a4-3aab-4722-90c2-7f4cca4cbded", "8fa3aa8b-3f22-4413-a41d-e78de9051de2" ], "name": "James" }, { "id": "002", "cars": [ "cd1043af-856d-4649-a170-032d15a4119b", "00ed61a4-3aab-4722-90c2-7f4cca4cbded", "8fa3aa8b-3f22-4413-a41d-e78de9051de2" ], "name": "James" }] }
public class Page<Car> { private List<String> libs; private List<Car>items; public List<Car> getItems() { return items; } public void setItems(List<Car> items) { this.items = items; } public List<String> getLibs() { return libs; } public void setLibs(List<String> libs) { this.libs = libs; } }
"name": "James",the last comma is a problem