I am trying to upload data through json file ```[ ...
# community-help
n
I am trying to upload data through json file
Copy code
[
  {
  "id": 1,
  "companyId": "62a1ce490f8710001297efcd",
  "jobApplicationId": "63be4edd95e5ed00158a4c25",
  "unassigned": false,
  "jobId": "62a1ce6d0f8710001297efd3",
  "stageId": "62a1ce6d0f8710001297efd6",
  "status": 1,
  "name": "Urvish",
  "email": "<mailto:urvish@yopmail.com|urvish@yopmail.com>",
  "isRejected": false,
  "tags": [],
  "sourceVia": "SpringRecruit Interface",
  "sourceBy": "62a1ce490f8710001297efce",
  "isFavourite": false,
  "userId": "62a1ce490f8710001297efce",
  "createdAt": "2023-01-11T05:53:33.761Z",
  "isProfileCompleted": false,
  "objectID": "63be4edd95e5ed00158a4c24",
  "_highlightResult": {
    "companyId": {
      "value": "62a1ce490f8710001297efcd",
      "matchLevel": "none",
      "matchedWords": []
    },
    "name": {
      "value": "Urvish",
      "matchLevel": "none",
      "matchedWords": []
    }
  }
},
{
  "id": 2,
  "companyId": "5d79f61d0965ef001f9209f9",
  "jobApplicationId": "63bd596e0d55940019475f20",
  "unassigned": false,
  "jobId": "5d7a2fbab4b75f00207b509b",
  "stageId": "5d7a2fbab4b75f00207b509e",
  "status": 1,
  "name": "awzsexdcfvgbhjn",
  "email": "<mailto:nikunj.gup5632ta_cs19@gla.ac.in|nikunj.gup5632ta_cs19@gla.ac.in>",
  "isRejected": false,
  "resumeLink": "<https://springrecruit-storage-dev.s3.amazonaws.com/candidate/63bd596d0d55940019475f1f/resumes/20230110122608_f5d6cd90-90e1-11ed-a796-67c1113a1d65.pdf>",
  "phone": "+917037222550",
  "tags": [],
  "sourceVia": "SpringRecruit Interface",
  "sourceBy": "62b586daa1d066001a5b8dde",
  "isFavourite": false,
  "userId": "62b586daa1d066001a5b8dde",
  "createdAt": "2023-01-10T12:26:21.954Z",
  "isProfileCompleted": true,
  "objectID": "63bd596d0d55940019475f1f",
  "_highlightResult": {
    "companyId": {
      "value": "5d79f61d0965ef001f9209f9",
      "matchLevel": "none",
      "matchedWords": []
    },
    "name": {
      "value": "awzsexdcfvgbhjn",
      "matchLevel": "none",
      "matchedWords": []
    }
  }
},
{
  "id": 3,
  "companyId": "62e7683cf3fd1c2c34ab70c1",
  "jobApplicationId": "63b27fd943e5956f701be6cc",
  "unassigned": false,
  "jobId": "63638bc81aad0810e0763ebc",
  "stageId": "63638bc81aad0810e0763ebf",
  "status": 1,
  "name": "rdtfghbjnm,",
  "email": "<mailto:nikunj.gu956pta_cs19@gla.ac.in|nikunj.gu956pta_cs19@gla.ac.in>",
  "isRejected": false,
  "resumeLink": "<https://springrecruit-storage-dev.s3.amazonaws.com/localhost/candidate/63b27fd743e5956f701be6cb/resumes/20230102122502_61a98720-8a6a-11ed-8879-4d95b3eefaca.pdf>",
  "phone": "+917037000550",
  "tags": [],
  "sourceVia": "Career Page",
  "sourceBy": "Candidate",
  "isFavourite": false,
  "userId": null,
  "createdAt": "2023-01-02T06:55:19.363Z",
  "isProfileCompleted": true,
  "objectID": "63b27fd743e5956f701be6cb",
  "_highlightResult": {
    "companyId": {
      "value": "62e7683cf3fd1c2c34ab70c1",
      "matchLevel": "none",
      "matchedWords": []
    },
    "name": {
      "value": "rdtfghbjnm,",
      "matchLevel": "none",
      "matchedWords": []
    }
  }
},
{
  "id": 4,
  "companyId": "62e7683cf3fd1c2c34ab70c1",
  "jobApplicationId": "63aabc2800f6d16e14115477",
  "unassigned": false,
  "jobId": "63638bc81aad0810e0763ebc",
  "stageId": "63638bc81aad0810e0763ebf",
  "status": 1,
  "name": "SPRINGROLE INDIA PRIVATE LIMITED",
  "email": "<mailto:aayu5sh.sinha@springworks.in|aayu5sh.sinha@springworks.in>",
  "isRejected": false,
  "resumeLink": "<https://springrecruit-storage-dev.s3.amazonaws.com/localhost/candidate/63aabc2500f6d16e14115475/resumes/20221227150312_7b4e8ea0-85c9-11ed-92e1-c5d5d6921802.pdf>",
  "phone": "+911915005075",
  "tags": [],
  "sourceVia": "SpringRecruit Interface",
  "sourceBy": "62e7683cf3fd1c2c34ab70c2",
  "isFavourite": false,
  "userId": "62e7683cf3fd1c2c34ab70c2",
  "createdAt": "2022-12-27T09:34:29.745Z",
  "isProfileCompleted": true,
  "objectID": "63aabc2500f6d16e14115475",
  "_highlightResult": {
    "companyId": {
      "value": "62e7683cf3fd1c2c34ab70c1",
      "matchLevel": "none",
      "matchedWords": []
    },
    "name": {
      "value": "SPRINGROLE INDIA PRIVATE LIMITED",
      "matchLevel": "none",
      "matchedWords": []
    }
  }
},
{
  "id": 5,
  "companyId": "62e7683cf3fd1c2c34ab70c1",
  "jobApplicationId": "63aabc2800f6d16e14115476",
  "unassigned": false,
  "jobId": "6363763d1aad0810e0763e60",
  "stageId": "6363763d1aad0810e0763e63",
  "status": 1,
  "name": "rewqasdfgtyui",
  "email": "<mailto:yhnbgh@outh.com|yhnbgh@outh.com>",
  "isRejected": false,
  "resumeLink": "<https://springrecruit-storage-dev.s3.amazonaws.com/localhost/candidate/63aabc2500f6d16e14115474/resumes/20221227150312_7b4ce0f0-85c9-11ed-92e1-c5d5d6921802.pdf>",
  "phone": "+918279965511",
  "tags": [],
  "sourceVia": "SpringRecruit Interface",
  "sourceBy": "62e7683cf3fd1c2c34ab70c2",
  "isFavourite": false,
  "userId": "62e7683cf3fd1c2c34ab70c2",
  "createdAt": "2022-12-27T09:34:29.744Z",
  "isProfileCompleted": true,
  "objectID": "63aabc2500f6d16e14115474",
  "_highlightResult": {
    "companyId": {
      "value": "62e7683cf3fd1c2c34ab70c1",
      "matchLevel": "none",
      "matchedWords": []
    },
    "name": {
      "value": "rewqasdfgtyui",
      "matchLevel": "none",
      "matchedWords": []
    }
  }
}
]
it is throwing error, can you please tell where i am wrong i am used collection with auto detection schema
j
what is the error you get?
it might be because you have a nested object... "_highlightResult"
im not sure though im pretty new to typesnese. try indexing a couple documents without the nested data
k
@Nikunj Gupta Are you using the import end-point? If so, the file should be JSON lines, i.e. each line should contain a JSON object. The example above is a proper JSON array. See here for example: https://typesense.org/docs/0.23.1/api/documents.html#import-a-jsonl-file