Code: Select all
import ujson
exampleJSON = ujson.loads(
'{ \n' \
'"Name": "Á" \n'\
'}\n')
>>> exampleJSON
{'Name': '\xc1'}
>>> print(bytes(ujson.dumps(exampleJSON), 'utf-8'))
b'{"Name": "\xc3\x81"}'
Google did not give any relevant hits, maybe my keywords were not useful.
Thanks.