title: Removing Json elements from the Json array if property is empty or missing using jolt transform
body: <p>I'm trying to remove JSON elements if the property in the object is missing or null</p>
  <pre><code>{
    &quot;enterprise&quot;: &quot;&quot;,
    &quot;Inactive_enterprise_id&quot;: null,
    &quot;emp_ID&quot;: &quot;123456&quot;,
    &quot;Inactive_emp_id&quot;: &quot;000821972&quot;,
    &quot;Username&quot;: &quot;&quot;,
    &quot;A_ID&quot;: &quot;fsgf1234jhgfs3&quot;,
  }
  </code></pre>
  <p>here is what I am getting:</p>
  <pre><code>&quot;identifiers&quot; : [ {
        &quot;type&quot; : &quot;enterprise&quot;
      }, {
        &quot;type&quot; : &quot;Inactive_enterprise_id&quot;
      }, {
        &quot;type&quot; : &quot;network&quot;
      }, {
        &quot;identifier&quot; : &quot;123456&quot;,
        &quot;type&quot; : &quot;emp_ID&quot;
      }, {
        &quot;identifier&quot; : &quot;000821972&quot;,
        &quot;type&quot; : &quot;Inactive_emp_id&quot;
      }, {
        &quot;identifier&quot; : &quot;fsgf1234jhgfs3&quot;,
        &quot;type&quot; : &quot;A_ID&quot;
      } ]
  </code></pre>
  <p>expected output:</p>
  <pre><code>&quot;identifiers&quot; : 
  
      [ 
              {
                &quot;identifier&quot; : &quot;123456&quot;,
                &quot;type&quot; : &quot;emp_ID&quot;
              }, {
                &quot;identifier&quot; : &quot;000821972&quot;,
                &quot;type&quot; : &quot;Inactive_emp_id&quot;
              }, {
                &quot;identifier&quot; : &quot;fsgf1234jhgfs3&quot;,
                &quot;type&quot; : &quot;A_ID&quot;
              } ]
  </code></pre>
  <p>I have tried the different JsonSpecs provided on different websites, could able to match expected output. Also tried using two-shift operations but no luck, Any help or suggestion will be appreciated.</p>
  <p>Thanks.</p>