title: Elegant way to convert json to list of objects in Python 3
body: <p>Is there a more elegant way to parse a json file containing an array of elements?</p>
  <p>Example:</p>
  <pre><code>import json
  
  contents = ... # read json file
  
  # 'elements_dict' is an array of dictionaries
  elements_dict = json.loads(contents)
  
  # 'elements' is a list of Element
  elements = [Element(**element) for element in elements_dict]
  </code></pre>
  <p>Could the loads function somehow return an array of <strong>Element</strong> instead?</p>