Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

error parsing JSON

Nodar Vardiashvili
Contributor
June 6, 2023

Hi,

 

I am trying to create customer request from REST API.

end get 

errorMessages :  "There was an error parsing JSON. Check that your request body is valid."

 

 

{
"serviceDeskId": "110",
"requestTypeId": "2485",
"requestFieldValues": {
"Summary": "Request Apeso From Rest API",
"customfield_13088": "100",
"customfield_13104": "test@mail.com",
}
}

1 answer

1 vote
Albert Manuel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2023

Hi,

Try to remove the comma after the "

"customfield_13104": "test@mail.com",

"

Your JSON should look like this:

{
"serviceDeskId": "110",
"requestTypeId": "2485",
"requestFieldValues": {
"Summary": "Request Apeso From Rest API",
"customfield_13088": "100",
"customfield_13104": "test@mail.com"
}
}

 

Test and see if that works.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events