json.loads(s) returns error message like this: ValueError: Invalid control character at: line 1 column 33 (char 33) According to http://docs.python.org/2/library/json.html "If strict is False (True is the default), then control characters will be all…