user2202866
user2202866

Reputation: 101

Error importing JSON file into LUIS List entity

I am following the suggested LUIS syntax when importing a file, but throws an error "A valid json file is required". I am not sure what it does not like about the file. I even tried a truncated file, and it does not like it. Here is complete content of my file:

[
  {
    "canonicalForm": "4214441",
    "list": [
      "SHASTA COUNTY RISK MANAGEMENT REDDING"
    ]
  },
  {
    "canonicalForm": "4476278",
    "list": [
      "SEDGWICK UC 14533 SAN DIEGO"
    ]
  }
]

enter image description here

Upvotes: 0

Views: 751

Answers (1)

nwxdev
nwxdev

Reputation: 4635

The contents of your file looks fine, but from your screenshot, it looks like the file extension used is .txt. Change your file extension to .json, eg. insuranceco.json.

Upvotes: 3

Related Questions