我真的是 python 新手,想编写一个 python 脚本,通过读取 json 文件来创建 python 对象。
我只想将 json 文件名作为参数传递给脚本。我想使用这个 python 脚本作为模板来解析 json 文件。下面是我的示例 json 文件内容
{"?xml":{"@version":"1.0","@encoding":"Windows-1252"},"TestScript":{"TestExperiment":{"Test1":{"Control":[{"@Type":"System.Windows.Forms.TextBox","@Name":"Description","@FormName":"Test1","Text":null,"Visible":"True"},{"@Type":"System.Windows.Forms.TextBox","@Name":"Objective","@FormName":"Test1","Text":null,"Visible":"True"},{"@Type":"System.Windows.Forms.TextBox","@Name":"Test1","@FormName":"Test1","Text":null,"Visible":"True"}]}}}}
上面的示例文件非常小。我可能需要解析一个非常大的 json 文件。
谢谢,