Python: Backslash from escaped single quote is being sent as part of JSON request
Unsure if title is an accurate way of phrasing question. I have a JSON request and I'm passing in a variable "code". (It's hardcoded here but it's coming from another function) code = ""date1.setValue('2023-01-01 00:00:00')"" data_string = f'{{"code": {code}}}' payload…