I have an AJAX response that returns a JSON object. One of the dictionary values is supposed to read:
"image\/jpeg"
But instead in reads:
"images\\/jpeg"
I've gone through the documentation on string literals and how to ignore escape sequences, and I've tried to prefix the string with 'r', but so far no luck.
My JSON encoded dictionary looks like this:
response.append({ 'name' : i.pk, 'size' : False, 'type' : 'image/jpeg' })
Help would be greatly appreciated!