I am POST'ing the following data to our server's v2 API using Python's request library.
{
"fields": {
"customfield_10300": "8lbs 3oz",
"customfield_10315": {
"value": "Mississippi",
"child": "Harrison"
},
"project": {
"key": "BOD"
},
"issuetype": {
"name": "Task"
}
}
}
I get an error:
{
"customfield_10315": "Can not instantiate value of type [simple type, class com.atlassian.jira.issue.fields.rest.json.bean.CustomFieldOptionJsonBean] from JSON String; no single-String constructor/factory method (through reference chain: com.atalassianl.jira.issue.fields.rest.json.beans.CustomFieldOptionJsonBean[\"child\"])"
}
Is my JSON incorrectly formatted?
Where could I have gone to figure this out on my own? I unsuccessfully tried searching the documentation. I also tried googling a solution, but the results all seemed to indicate those people were double-encoding their JSON strings by accident, which I don't think I am doing.