Skip to content

Commit 57515e2

Browse files
authored
Merge pull request #6 from Fr0stM0urne/json_parsing_fix
Fix JSON parsing for python requests
2 parents 7231dc8 + f87737e commit 57515e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/targets/python/helpers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module.exports = {
7777
if (value === null || value === undefined) {
7878
return ''
7979
}
80-
return '"' + value.toString().replace(/"/g, '\\"') + '"'
80+
return JSON.stringify(value)
8181
}
8282
}
8383
}

0 commit comments

Comments
 (0)