from json.decoder import JSONDecoder
# string = "string having invalid utf8 character sequence"
decoder = JSONDecoder(encoding='latin-1')
decoder.decoder(string)
Advertisements