1.测试数据 ,swagger里面message出现这样的报错
JSON parse error: Unexpected character (’}’ (code 125)): was expecting double-quote to start field name; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character (’}’ (code 125)): was expecting double-quote to start field name\n at [Source: (PushbackInputStream); line: 4, column: 2]
检查了发现多了一个逗号。
总结:json数据最后一个键值对对象后不需要加","逗号