The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events