I've seen a fair share of ungainly XML->JSON code on the web, and having interacted with Stack's users for a bit, I'm convinced that this crowd can help more than the first few pages of Google results can.
所以,我们正在解析一个天气信息,我们需要在众多的网站上填充天气小部件。 我们现在正在研究基于Python的解决方案。
This public weather.com的RSS订阅 是我们要解析的一个很好的例子( 由于与他们的合作关系,我们实际的weather.com feed包含了额外的信息。 ).
简而言之,我们应该如何用Python将XML转换成JSON?