error {"detail":"JSON parse error - Expecting property name enclosed in double quotes: line 2 column

abhsekpramanik3
Tera Contributor

Hi All,

 

I am facing subjected issue  issue during rest message call from snow . 

 

My http query parameter is below:

 

abhsekpramanik3_2-1668133665784.png

 

and my variable substitution is 

 

abhsekpramanik3_0-1668133268220.png

 

 

 

 

I received 400 response code with below response 

 

{"detail":"JSON parse error - Expecting property name enclosed in double quotes: line 2 column 1 (char 3)\nPossible cause: trailing comma."}

 

But When I send empty or  ' ' through 'body' I get https status code 201

 

abhsekpramanik3_1-1668133607903.png

 

 

 

 

Any idea why it is not taking variable ? Is it the issue from snow or third party end?

 

Thanks,

Abhisek

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@abhsekpramanik3 

your json request body should be in curly bracket

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader