title: Jolt Transform in NiFi
body: <p>I am applying Jolt to NiFi but I am not getting the expected result.</p>
  <p><strong><strong>Result</strong></strong></p>
  <pre class="lang-js prettyprint-override"><code>{
     &quot;from&quot;: &quot;2020-07-16T18:14:00+00:00&quot;,
     &quot;to&quot;: &quot;2020-07-16T18:15:00+00:00&quot;,
     &quot;values&quot;:
     {
         &quot;score&quot;: 1.0,
         &quot;s&quot;: 0,
         &quot;t&quot;: 0,
         &quot;f&quot;: 0,
         &quot;count&quot;: 0,
         &quot;value&quot;: null,
         &quot;threshold&quot;: 0.5,
         &quot;threshold_min&quot;: 0.5
     },
     &quot;aplication&quot;: &quot;Magento&quot;,
     &quot;name&quot;: &quot;ApdexAll&quot;
  }
  </code></pre>
  <p><strong>Jolt</strong></p>
  <pre class="lang-js prettyprint-override"><code>  [{
          &quot;operation&quot;: &quot;shift&quot;,
          &quot;spec&quot;: {
              &quot;*&quot;: &quot;&amp;&quot;
          }
      }, {
          &quot;operation&quot;: &quot;default&quot;,
          &quot;spec&quot;: {
              &quot;aplication&quot;: &quot;${aplication}&quot;,
              &quot;name&quot;: &quot;${name}&quot;
          }
      }]
  </code></pre>
  <p>I need a json with just one level</p>
  <pre class="lang-js prettyprint-override"><code>{
      &quot;aplication&quot;: &quot;Magento&quot;,
      &quot;name&quot;: &quot;ApdexAll&quot;,
      &quot;from&quot;: &quot;2020-07-16T18:14:00+00:00&quot;,
      &quot;to&quot;: &quot;2020-07-16T18:15:00+00:00&quot;,
      &quot;values&quot;:
      {
          &quot;score&quot;: 1.0,
          &quot;s&quot;: 0,
          &quot;t&quot;: 0,
          &quot;f&quot;: 0,
          &quot;count&quot;: 0,
          &quot;value&quot;: null,
          &quot;threshold&quot;: 0.5,
          &quot;threshold_min&quot;: 0.5
      }
  }
  </code></pre>