JSON parse error: Unexpected character ('l' (code 108)): was expecting double-quote to start field name; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('l' (code 108)): was expecting double-quote to start field name
at [Source: (PushbackInputStream); line: 4, column: 6]]
原因是传过来的JSON格式写错了,属性值没打 “”
{
"labelType":"123",
labelName:"2999",
labelObject:1
}
需要改成
{
"labelType":"123",
"labelName":"2999",
"labelObject":1
}
最后一个多加了个逗号“,”
{
"labelType":"123",
"labelName":"2999",
"labelObject":1,
}
去掉即可
{
"labelType":"123",
"labelName":"2999",
"labelObject":1
}
慢慢学,很多东西还是要实际操作才知道有很多坑,光看的确不行。还是想吐槽,分组写真的是三个人三种代码风格,我再来就是4种了,