skip to Main Content

Reformatting a json tree using python

I have a json tree at hand, I want to reformat it. **The input is somewhat like : ** [ { "archive":{ "LOGS":{ "_files":[ "zomp_download_20220601170001.log", "zomp_download_20220626170002.log" ] }, "SUMMARY":{ "_files":[ "SUMMARY_zomp_report_2022-04-01.csv", "SUMMARY_zomp_report_2022-06-25.csv" ] }, "_files":[ "lexter_report_2022-04-01.csv", "lexter_report_2022-06-25.csv" ] } }…

VIEW QUESTION

Converting String into Dictionary via Python containing invalid JSON

As above mentions, I'm currently trying to convert a string into a dictionary that looks like below: "{"SOAPAction":"http://www.my-website..uk/path/To/service/v1/serviceAndLedger","ID":"1sceas2-61ae-379dd-a9cd-c813fb07u8inb", "info": {"GMT":"16/Nov/2022:12:13:46 +0000", "client":"10.177.147.71:42987", "frontend":"path/to_my_ip/12.189.66.213:8804", "request":"POST /path/service HTTP/1.1", "body":"\/path\/of\/downloaded\/file.xml", "response":"-"}}" The issue is that the above code currently doesn't convert into a…

VIEW QUESTION
Back To Top
Search