AttributeError: 'bytes' object has no attribute 'dumps'
mycomment = "Test comment"
issue_comment = json.dumps( {
"body": {
"content": [
{
"content": [
{
"text": mycomment,
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
}
})
Can you help me with how to pass a variable in this python dictionary?
Sounds like it is about decoding. You can check the link here, it might help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.