Yeah, here is a real example I’m struggling with. It’s absolutely the same string
import json
dummy_response = '{"overriding_parameters": {"jar_params": ["{\"aggregationType\":\"Type1\",\"startDate\":\"2022-05-10\",\"endDate\":\"2022-05-10\"}"]}}'
json.loads(r'{"overriding_parameters": {"jar_params": ["{\"aggregationType\":\"Type1\",\"startDate\":\"2022-05-10\",\"endDate\":\"2022-05-10\"}"]}}') # works fine - test it out
json.loads(dummy_response) # raises JSONDecodeError
print(dummy_response) # {"overriding_parameters": {"jar_params": ["{"aggregationType":"Type1","startDate":"2022-05-10","endDate":"2022-05-10"}"]}}
print(repr(dummy_response)) # '{"overriding_parameters": {"jar_params": ["{"aggregationType":"Type1","startDate":"2022-05-10","endDate":"2022-05-10"}"]}}'
Prints have different in the first single quote in repr
.