title: Nifi: Change the same values of all elements in an array (e.g. test="nio" => test=0)
body: <p><em>Edit1: Any number of new attributes with the same name can be added, for which the value is also to be changed. Therefore, several attributes with the same name and the same value can occur, which must all be exchanged. Therefore it should be dynamic.</em></p>
  <p>I can no longer get on in Nifi at the following point. I would like to change the values of certain attributes in an array on the same basis. In my case, for example, the following change would be desired:</p>
  <p><em><strong>test=&quot;nio&quot;</strong></em> =&gt; <em><strong>test=0</strong></em></p>
  <p><em><strong>test=&quot;io&quot;</strong></em> =&gt; <em><strong>test=1</strong></em></p>
  <p>My first guess is to implement this with JOLT, but I currently lack any approach in this regard.</p>
  <p>Input:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;counterTop&quot;: {
      &quot;loaf1&quot;: [
        {
          &quot;type&quot;: &quot;white&quot;,
          &quot;unit&quot;: &quot;mm&quot;,
          &quot;test&quot;: &quot;nio&quot;
        },
        {
          &quot;type&quot;: &quot;black&quot;,
          &quot;unit&quot;: &quot;cm&quot;,
          &quot;test&quot;: &quot;io&quot;
        },
        {
          &quot;type&quot;: &quot;black123&quot;,
          &quot;unit&quot;: &quot;mm&quot;,
          &quot;test&quot;: &quot;io&quot;
        }
      ]
    }
  }
  </code></pre>
  <p>Expected output:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;counterTop&quot;: {
      &quot;loaf1&quot;: [
        {
          &quot;type&quot;: &quot;white&quot;,
          &quot;unit&quot;: &quot;mm&quot;,
          &quot;test&quot;: &quot;0&quot;
        },
        {
          &quot;type&quot;: &quot;black&quot;,
          &quot;unit&quot;: &quot;cm&quot;,
          &quot;test&quot;: &quot;1&quot;
        },
        {
          &quot;type&quot;: &quot;black123&quot;,
          &quot;unit&quot;: &quot;mm&quot;,
          &quot;test&quot;: &quot;1&quot;
        }
      ]
    }
  }
  </code></pre>
  <p>Does anyone here have a solution?
  Thanks in advance!</p>