Deserialize JSON: Unexpected end when reading token. Path ''

Deserialize JSON: Unexpected end when reading token. Path ‘’. this error i am getting,
this is my json:

{
“sorting”: null,
“filterArray”: [
{
“key”: “contactName”,
“dataType”: “text”,
“filter”: [
{
“operator”: null,
“filterType”: “contains”,
“filterValue”: [“sa”]
}
]
}
]
}

i think in your json quotes(“) are different try below json, expected quotes(")

{
  "sorting": null,
  "filterArray": [
    {
      "key": "contactName",
      "dataType": "text",
      "filter": [
        {
          "operator": null,
          "filterType": "contains",
          "filterValue": [
            "sa"
          ]
        }
      ]
    }
  ]
}
1 Like

@Sameekshya_Panigrahi

Where you are getting from this json, manually you are storing this json or is it output of the HTTP activity?
if you are giving it manually make it proper json format,
{
“sorting”: null,
“filterArray”: [
{
“key”: “contactName”,
“dataType”: “text”,
“filter”: [
{
“operator”: null,
“filterType”: “contains”,
“filterValue”: [“sa”]
}
]
}
]
}

@Sameekshya_Panigrahi

the json looks valid

can you show how you are passing the data?

cheers

taking this json from postman

you are automating postman application or just manually you are copying the data and using that data to deserialize?

If you are taking manually use any chatgpt or any json modifier to correct the format that data you can use

okay thankyouu, will try this

Try replacing the copied double quotes manually

Like - remove the double quote which is copied from post man and type again manually

then try to deserialize

If you got solution please mark my post as solution and close this topic