How to parse the json file into a flask and write it to the database in Cyrillic. If it is like this:

{"data": [{"\u041e\u0431\u043b\u0430\u0441\u0442\u044c": "\u0418\u0432\u0430\u043d\u043e- \u0424\u0440\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0430\u044f", "\u0413\u043e\u0440\u043e\u0434": "\u041a\u043e\u043b\u044c\u0441\u043a\u0438\u0439 \u0440- \u043d", "\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435": "288.00"}, ....] "structure": ["\u041e\u0431\u043b\u0430\u0441\u0442\u044c", "\u0413\u043e\u0440\u043e\u0434", "\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435"]} 
  • For what purposes do you want to write the contents of the json file in the database? Does your file you want to import have a specific structure or can it be any? Specify. - LinnTroll
  • For example, there is a json file, inside it has the following structure: a group (Region), a parameter (City) and a value. In general, it has a certain structure. I want to build a dependency graph. - arcs_host 2:49 pm
  • So what is the problem with JSON parsing? Do you need to write it to the database at all? Also, you do not specify, you need to do this once or the data will be added periodically. - LinnTroll
  • For now, once. Well, I study and decided to come up with such a task. - arcs_host
  • JSON parsing is very simple. docs.python.org/2/library/json.html everything is written here. - LinnTroll

0