Popular recipes by Nikola http://code.activestate.com/recipes/users/4176190/2011-08-22T13:30:33-07:00ActiveState Code RecipesConvert XML into JSON (Python dicts and lists structure) (Python) 2011-08-22T13:30:33-07:00Nikolahttp://code.activestate.com/recipes/users/4176190/http://code.activestate.com/recipes/577494-convert-xml-into-json-python-dicts-and-lists-struc/ <p style="color: grey"> Python recipe 577494 by <a href="/recipes/users/4176190/">Nikola</a> (<a href="/recipes/tags/converter/">converter</a>, <a href="/recipes/tags/json/">json</a>, <a href="/recipes/tags/xml/">xml</a>). Revision 2. </p> <p>There are many ways to convert a specific XML dialect into JSON for easier consumption by Javascript code. This recipe works for some XML-based data, where the format is not really a document and html tags are used as field placeholders. You can use it as-is, but it is intended to serve as a starting point where you can plug your specific needs.</p>