Py, BeautifulSoup, JSON
Lists of objects from tags. Arbitrary XML will do.

tags = soup.findAll('foo')
a = [attrs_to_dict(b.attrs) for b in tags]
def attrs_to_dict(attrs):
  d = {}
  for attr in attrs:
    d[attr[0]] = attr[1]
  return d


tag.attrs attributes as a list of tuples

_ http://www.saltycrane.com/blog/2008/09/how-iterate-over-instance-objects-data-attributes-python/
11.•5.18