格式问题
{
"error" : {
"root_cause" : [
{
"type" : "parse_exception",
"reason" : "Failed to parse content to map"
}
],
"type" : "parse_exception",
"reason" : "Failed to parse content to map",
"caused_by" : {
"type" : "json_parse_exception",
"reason" : "Unexpected character ('}' (code 125)): was expecting double-quote to start field name\n at [Source: (ByteArrayInputStream); line: 12, column: 8]"
}
},
"status" : 400
}
错误原因: 有一行多加了逗号 去掉就好了