title: Remove objects with duplicate property
body: <p>I have 'data' which is this array of objects:</p>
  <pre><code>{
  &quot;data&quot;: [
      {
          &quot;name&quot;: &quot;Erich&quot;,
          &quot;fruit&quot;: &quot;apple&quot;
      },
      {
          &quot;name&quot;: &quot;Fred&quot;,
          &quot;fruit&quot;: &quot;orange&quot;
      },
      {
          &quot;name&quot;: &quot;Erich&quot;,
          &quot;fruit&quot;: &quot;grape&quot;
      },   
          &quot;name&quot;: &quot;Fred&quot;,
          &quot;fruit&quot;: &quot;banana&quot;
      }
  ]}
  </code></pre>
  <p>Using only Jinja templating, I want to remove the objects with duplicate values for the &quot;name&quot; key, resulting in this:</p>
  <pre><code>{
  &quot;data&quot;: [
      {
          &quot;name&quot;: &quot;Erich&quot;,
          &quot;fruit&quot;: &quot;apple&quot;
      },
      {
          &quot;name&quot;: &quot;Fred&quot;,
          &quot;fruit&quot;: &quot;orange&quot;
      }
  ]}
  </code></pre>
  <p>At this point I don't care which of the duplicate objects is removed (e.g. apple vs grape or orange vs. banana) but if there is a way to use some logic with another KVP to decide, I would be interested in knowing how.</p>