请重试:Json 的错误(JSON 映射无效)
Please retry: error (invalid JSON mapping) for 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"
]
}
}
}
更新存储插件配置时出现以下错误:
Please retry: error (invalid JSON mapping)
我该如何解决这个问题?
在这里,您的 json 数据位置路径导致错误。 JSON 导致反斜杠解析错误。
使用 \
代替 \
,如下所示。
"location": "C:\Users\mypc\Desktop\JSON"
您的Json无效。在 JSON 的位置键中使用 ESCAPE SEQUENCE 来解决问题。
尝试将您的 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"
]
}
}
}
{
"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"
]
}
}
}
更新存储插件配置时出现以下错误:
Please retry: error (invalid JSON mapping)
我该如何解决这个问题?
在这里,您的 json 数据位置路径导致错误。 JSON 导致反斜杠解析错误。
使用 \
代替 \
,如下所示。
"location": "C:\Users\mypc\Desktop\JSON"
您的Json无效。在 JSON 的位置键中使用 ESCAPE SEQUENCE 来解决问题。
尝试将您的 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"
]
}
}
}