Python – Displays text file data in dictionary format

Displays text file data in dictionary format… here is a solution to the problem.

Displays text file data in dictionary format

< partition >

I have a text file (new.txt) that contains data like this:

{
    "String1": {
        "Value1": {"One":"a","Two":"b","Three":"c"},
        "Value2": {"One":"aa","Two":"bb","Three":"cc"},
         }

"String2": {
         "Value1": {"One":"a1","Two":"b1","Three":"c1"},
         "Value2": {"One":"aa1","Two":"bb1","Three":"cc1"},
         }
}

I want to display the following values:
String1,value1 i.e. {“One”:”a”,”Two”:”b”,”Three”:”c”}
String2, value2, and one is “aa1”

How can I display it…

Related Problems and Solutions