Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSON parse error: Cannot deserialize value of type from Array value (token `JsonToken.START_ARRAY`)

error here

controller here

service here

'm not getting it at all, I already changed the database, I changed the project entities and nothing.I would like to understand what I am doing wrong to be able to make the post.I attended some courses to be able to understand how to do it and to do it works. Alone there is always something.If anyone can help me, thanks in advance. because the similar questions here on the stack are not related to postMapping

like image 540
bruno adller Avatar asked Apr 17 '26 17:04

bruno adller


1 Answers

remove the [] in your request body, They represent that the data you transmitted is an array.

like image 108
MilkyGreen Avatar answered Apr 19 '26 06:04

MilkyGreen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!