title: Using Python module Glom, Extract Irregular Nested Lists into a Flattened List of Dictionaries
body: <p>Glom makes accessing complex nested data structures easier. 
  <a href="https://github.com/mahmoud/glom" rel="nofollow noreferrer">https://github.com/mahmoud/glom</a></p>
  
  <p>Given the following toy data structure:</p>
  
  <pre><code>target = [
              {
                  'user_id': 198,
                  'id': 504508,
                  'first_name': 'John',
                  'last_name': 'Doe',
                  'active': True,
                  'email_address': 'jd@test.com',
                  'new_orders': False,
                  'addresses': [
                      {
                          'location': 'home',
                          'address': 300,
                          'street': 'Fulton Rd.'
                      }
                  ]
              },
              {
                  'user_id': 209,
                  'id': 504508,
                  'first_name': 'Jane',
                  'last_name': 'Doe',
                  'active': True,
                  'email_address': 'jd@test.com',
                  'new_orders': True,
                  'addresses': [
                      {
                          'location': 'home',
                          'address': 251,
                          'street': 'Maverick Dr.'
                      },
                      {
                          'location': 'work',
                          'address': 4532,
                          'street':  'Fulton Cir.'
                      },
                  ]
              },
          ]
  </code></pre>
  
  <p>I am attempting to extract all address fields in the data structure into a flattened list of dictionaries.</p>
  
  <pre><code>from glom import glom as glom
  from glom import Coalesce
  import pprint
  
  """
  Purpose: Test the use of Glom
  """    
  
  # Create Glomspec
  spec = [{'address': ('addresses', 'address') }]
  
  # Glom the data
  result = glom(target, spec)
  
  # Display
  pprint.pprint(result)
  </code></pre>
  
  <p>The above spec provides:</p>
  
  <pre><code>[
      {'address': [300]},
      {'address': [251]}
  ]
  </code></pre>
  
  <p>The desired result is:</p>
  
  <pre><code>[
      {'address':300},
      {'address':251},
      {'address':4532}
  ]
  </code></pre>
  
  <h3>What Glomspec will generate the desired result?</h3>