2017-12-13 2 views
2
ため
{ 
    "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マッピング)JSON

再試行してください:エラー(無効なJSONマッピング)

どうすればこの問題を解決できますか?

答えて

3

ここでは、あなたのjsonデータロケーションパスでエラーが発生しています。 JSONは、バックスラッシュで解析エラーを引き起こします。

\の代わりに\\を使用してください。

"location": "C:\\Users\\mypc\\Desktop\\JSON"

+0

を変更し、それが働いた:として

はあなたのJSONを書き換えてみ – gbc

0

無効であなたのJSON。 JSONの場所キーにESCAPE SEQUENCEを使用して問題を解決してください。

{ 
    "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" 
      ] 
     } 
    } 
} 
関連する問題