I'm working on a project that uses Angular for the front-end and Java 1.8 for the back-end with Springboot, which is basically a simulator of builds for RPG characters (with the basic stats like health points, mana points, etc ...).
Posting a character was fine with its name, statistics.
But I'm trying to add items to the character and that's where my problem is.
Here's my POST mapping in my controller
Here's the model class for Character with its getters and setters (the get/set for the Items is also a list)
And here's how it is on my Angular project
Model , the methods in my formCharacter component.ts, my formCharacter Service and finaly the view where you chose an item.
And when I submit my form I get this error " JSON parse error: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token "
I'm sorry for the wall of text and thanks in advance if anyone has an idea on how to solve this problem.
I'm guessing it's the array of items in my Character's Object that's causing the problem of serialization?