title: Group object has name key value
body: <p>I'm trying to group object to 1 object.</p>
  <pre><code>  ...rows = []
  for alert in AlertConfiguration.objects().all():
      rows.append({
          alert.alarm_name : {
              alert.severity: alert.value,
          }
      })`
  response = make_response(jsonify(rows), HTTPStatus.OK)
  return response...
  </code></pre>
  <p><a href="https://i.stack.imgur.com/sulaP.png" rel="nofollow noreferrer">image1</a>
  <a href="https://i.stack.imgur.com/Kw5Hf.png" rel="nofollow noreferrer">image2</a></p>