JSON parse error: Can not deserialize instance of java.lang.String[] out of VALUE_STRING token;

1. The cause of the error, the data type of the front-end parameter does not match the server entity, and Json cannot be resolved

The author here is that the server is a String array, and when the parameter is received, it is of type String

2. Solution

{
"Platform": "0"
}
changed to:
{
"platform": ["0"]
}

Published 25 original articles · praised 4 · visits 1516

Guess you like

Origin blog.csdn.net/weixin_39025362/article/details/105392456