There is a TXT file that contains the following text:

{CONTENT: [1, 0, {A: 1, B: 9, C: 2}, G, 10], Data {Name: Ivan, Surname: Ivanov}}

In general, the file contains a large dictionary, which in turn may contain lists, which in turn may contain dictionaries, etc. Copying as text and inserting as a variable I get hard to slower work. Is it possible if you can import data of the variable "A" from the TXT file (with the preservation of data types)?

And how did JSON tried to ship from the file?

CrazyElf2021-04-07 17:37:12

I tried and turned out). Thanks)

А А2021-04-07 19:47:48