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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.