How do I transform an array using Jolt?
<p>I am getting a null value for my transformed object when trying to convert something like this:</p>
<pre class="lang-json prettyprint-override"><code>{   
  &quot;employees&quot;: [
    { &quot;f_name&quot; : &quot;tom&quot;, &quot;l_name&quot; : &quot;smith&quot; },
    { &quot;f_name&quot; : &quot;don&quot;, &quot;l_name&quot; : &quot;jones&quot; }
  ]
}
</code></pre>
<p>to this:</p>
<pre class="lang-json prettyprint-override"><code>{
  &quot;employees&quot;: [
    { &quot;firstName&quot; : &quot;tom&quot;, &quot;lastName&quot; : &quot;smith&quot; },
    { &quot;firstName&quot; : &quot;don&quot;, &quot;lastName&quot; : &quot;jones&quot; }
  ]
}
</code></pre>
<p>This is the spec I am using:</p>
<pre class="lang-json prettyprint-override"><code>[
  {
    &quot;operation&quot; : &quot;shift&quot;,
    &quot;spec&quot; : {
      &quot;employees&quot; : {
        &quot;f_name&quot; : &quot;firstName&quot;,
        &quot;l_name&quot; : &quot;lastName&quot;
      }
   }
 ]
</code></pre>
<p>This is the code I am using:</p>
<pre><code>List&lt;Object&gt; chainrSpecJSON = JsonUtils.classpathToList(&quot;path/spec.json&quot;);
Chainr chainr = Chainr.fromSpec(chainrSpecJSON);
Object inputJSON = JsonUtils.classpathToObject(&quot;path/input.json&quot;);

Object transformed = chainr.transform(inputJSON);
System.out.println(transformed);
</code></pre>
<p>I was able to successfully transform the following input with the same spec and code as above:</p>
<pre class="lang-json prettyprint-override"><code>{   
  &quot;employees&quot;: 
    { &quot;firstName&quot; : &quot;tom&quot;, &quot;lastName&quot; : &quot;smith&quot; }
}
</code></pre>
<p>So what do I need to do to transform an array of employee objects?</p>