我希望将Json转换成Python类。
示例:
示例:
{'channel':{'lastBuild':'2013-11-12', 'component':['test1', 'test2']}}
self.channel.component[0] => 'test1'
self.channel.lastBuild => '2013-11-12'
您知道 Python 用于转换 JSON 的库吗?