{
"type": "file",
"enabled": true,
"connection": "classpath:///",
"config": null,
"workspaces": {
"jsonfiles": {
"location": "C:\Users\mypc\Desktop\JSON",
"writable": true,
"defaultInputFormat": null
}
},
"formats": {
"json": {
"type": "json",
"extensions": [
"json"
]
}
}
}在更新存储插件的配置时,我得到了下面的错误:
请重试:错误(无效的JSON映射)
我怎么才能解决这个问题?
发布于 2017-12-13 12:26:26
在这里,您的json数据位置路径会导致错误。JSON使用反斜杠导致解析错误。
使用\\而不是\,如下所示。
"location": "C:\\Users\\mypc\\Desktop\\JSON"
发布于 2017-12-13 12:40:35
你的儿子病了。使用JSON位置键中的转义序列来解决这个问题。
尝试将您的JSON重写为:
{
"type": "file",
"enabled": true,
"connection": "classpath:///",
"config": null,
"workspaces": {
"jsonfiles": {
"location": "C:\\Users\\mypc\\Desktop\\JSON",
"writable": true,
"defaultInputFormat": null
}
},
"formats": {
"json": {
"type": "json",
"extensions": [
"json"
]
}
}
}https://stackoverflow.com/questions/47792882
复制相似问题