This is killing me. So I have a long string, validated in JSONlint, that only works when loaded as a raw string.
raw_string = r'...'
normal_string = '...'
normal_string = r'%s' % normal_string
data = json.loads(raw_string) #<== works
data = json.loads(string) #<== doesn't
I cannot get the string to be interpreted as raw string as it runs. I believe there is something fishy about this string because there is an error no matter how the problem is approached. (encoding, decoding, etc)
You can see the work here: https://repl.it/@dennis_pitt/Interpret-String-as-Raw
Please point me in the right direction. Python3.5