<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Jolt Transform help on json to add another array layer in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Jolt-Transform-help-on-json-to-add-another-array-layer/m-p/338119#M232770</link>
    <description>&lt;P&gt;This works perfectly!&amp;nbsp; Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2022 13:46:52 GMT</pubDate>
    <dc:creator>learnNifi</dc:creator>
    <dc:date>2022-03-09T13:46:52Z</dc:date>
    <item>
      <title>Jolt Transform help on json to add another array layer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Jolt-Transform-help-on-json-to-add-another-array-layer/m-p/338033#M232738</link>
      <description>&lt;P&gt;I am a newbie to Nifi Jolt transform.&amp;nbsp; I've been looking through the document, but still cannot figure out how to do a simple Jolt Transform.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{"id": 123456,&lt;/P&gt;&lt;P&gt;"manager_id": 98765}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;desired output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{"reportTo": [{"userId": 98765}]}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got the part to change the manager_id to userId by the following Spec.&amp;nbsp; But I was stuck how to make it another layer.&amp;nbsp; Any insights/help to solve this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;[{&lt;BR /&gt;"operation": "shift",&lt;BR /&gt;"spec": {&lt;BR /&gt;"manager_id": "userId"}&lt;BR /&gt;}&lt;BR /&gt;}]&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 22:41:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Jolt-Transform-help-on-json-to-add-another-array-layer/m-p/338033#M232738</guid>
      <dc:creator>learnNifi</dc:creator>
      <dc:date>2022-03-08T22:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Jolt Transform help on json to add another array layer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Jolt-Transform-help-on-json-to-add-another-array-layer/m-p/338036#M232740</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96386"&gt;@learnNifi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this one out:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "operation": "shift",
    "spec": {
      "id": "&amp;amp;",
      "manager_id": "report_to[0].id"
    }
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;DIV&gt;&lt;I&gt;--&lt;/I&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;I&gt;Was your question answered? Please take some time to click on "&lt;/I&gt;&lt;STRONG&gt;&lt;I&gt;Accept as Solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt;" below this post.&lt;/I&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;I&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/I&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Mar 2022 23:26:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Jolt-Transform-help-on-json-to-add-another-array-layer/m-p/338036#M232740</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-03-08T23:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Jolt Transform help on json to add another array layer</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Jolt-Transform-help-on-json-to-add-another-array-layer/m-p/338119#M232770</link>
      <description>&lt;P&gt;This works perfectly!&amp;nbsp; Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 13:46:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Jolt-Transform-help-on-json-to-add-another-array-layer/m-p/338119#M232770</guid>
      <dc:creator>learnNifi</dc:creator>
      <dc:date>2022-03-09T13:46:52Z</dc:date>
    </item>
  </channel>
</rss>

