Skip to content

Commit

Permalink
Merge pull request #6 from Fr0stM0urne/json_parsing_fix
Browse files Browse the repository at this point in the history
Fix JSON parsing for python requests
  • Loading branch information
pimterry authored Apr 5, 2024
2 parents 7231dc8 + f87737e commit 57515e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/targets/python/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module.exports = {
if (value === null || value === undefined) {
return ''
}
return '"' + value.toString().replace(/"/g, '\\"') + '"'
return JSON.stringify(value)
}
}
}

0 comments on commit 57515e2

Please sign in to comment.