class RawJson(str):
    pass
for name in ['encode_basestring', 'encode_basestring_ascii']:

    def encode(o, _encode=getattr(json.encoder, name)):
        pass
In Python, have json not escape a string