Avatar ·

How to disable the replacement of the Cyrillic alphabet with \ uxxxx in lines during conversion in json

📁 python, помощь, пример

When you try to format the JSON output using dump , Russian symbols cease to be displayed. Something like "arbitrary field, for example Address" ":" "\ u04443 \ u043b \ u0438 \ u04430 \ u041c \ u0430, etc."

n

tried json.dumps (). Encode ("UTF8" ") and codac convert - nothing helps.

n
   de   Load_Data  ( filepath ): n  ground   open  (filepath,  'r' , encoding =  'utf-8' )  as  fh: n data =" JSON.load (FH) # We download data from the file to the DATA dating  n  retu  data  def   pretty_print_json  ( data ): n inf = json.dumps (data, sort_keys =  false , indent =  4 , separators = ( '', ', ' ':' )) n  retu  inf n