<?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: Create lists and objects regrouping with JoltTransformJSON in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Create-lists-and-objects-regrouping-with-JoltTransformJSON/m-p/369342#M240469</link>
    <description>&lt;P&gt;I used this Jolt Spec with the help of chatGPT&lt;BR /&gt;and it worked&lt;BR /&gt;[{&lt;BR /&gt;"operation": "shift",&lt;BR /&gt;"spec": {&lt;BR /&gt;"systemId": "systemId",&lt;BR /&gt;"systemName": "systemName",&lt;BR /&gt;"items.nid": "items.nid",&lt;BR /&gt;"items.birth_date": "items.birth_date",&lt;BR /&gt;"items.last_name": "items.last_name",&lt;BR /&gt;"items.entity_type": "items.entity_type",&lt;BR /&gt;"items.citizenship": "items.citizenship",&lt;BR /&gt;"items.nationality": "items.nationality",&lt;BR /&gt;"items.business_name": "items.business_name",&lt;BR /&gt;"items.customer_type": "items.customer_type",&lt;BR /&gt;"items.first_name": "items.first_name"&lt;BR /&gt;}&lt;BR /&gt;}, {&lt;BR /&gt;"operation": "modify-overwrite-beta",&lt;BR /&gt;"spec": {&lt;BR /&gt;"items": {&lt;BR /&gt;"*": "=ifEmpty(@(1,&amp;amp;),'')"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}, {&lt;BR /&gt;"operation": "shift",&lt;BR /&gt;"spec": {&lt;BR /&gt;"systemId": "systemId",&lt;BR /&gt;"systemName": "systemName",&lt;BR /&gt;"items": "items"&lt;BR /&gt;}&lt;BR /&gt;}]&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 11:07:57 GMT</pubDate>
    <dc:creator>FediMannoubi</dc:creator>
    <dc:date>2023-04-25T11:07:57Z</dc:date>
    <item>
      <title>Create lists and objects regrouping with JoltTransformJSON</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-lists-and-objects-regrouping-with-JoltTransformJSON/m-p/369324#M240464</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I have created a JSON body but I need to reconstruct it so I can send it in a REST API.&lt;/P&gt;&lt;P&gt;Input :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "systemId" : "4",
  "systemName" : "Main",
  "items.nid" : "123",
  "items.birth_date" : "1978-01-01",
  "items.last_name" : "Willson",
  "items.nationality" : "GN",
  "formId": 1
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "formId": 1,
  "systemId" : "4",
  "systemName" : "Main",
  "items" {
    "nid" : "123",
    "birth_date" : "1978-01-01",
    "last_name" : "Willson",
    "nationality" : "GN"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used&amp;nbsp;JoltTransformJSON but with no luck always get null as a result, I can't figure how to regroup them based on the name "items.*" . how can I regroup my items or is there a better way to solve this point ?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 09:03:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-lists-and-objects-regrouping-with-JoltTransformJSON/m-p/369324#M240464</guid>
      <dc:creator>FediMannoubi</dc:creator>
      <dc:date>2023-04-25T09:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create lists and objects regrouping with JoltTransformJSON</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-lists-and-objects-regrouping-with-JoltTransformJSON/m-p/369342#M240469</link>
      <description>&lt;P&gt;I used this Jolt Spec with the help of chatGPT&lt;BR /&gt;and it worked&lt;BR /&gt;[{&lt;BR /&gt;"operation": "shift",&lt;BR /&gt;"spec": {&lt;BR /&gt;"systemId": "systemId",&lt;BR /&gt;"systemName": "systemName",&lt;BR /&gt;"items.nid": "items.nid",&lt;BR /&gt;"items.birth_date": "items.birth_date",&lt;BR /&gt;"items.last_name": "items.last_name",&lt;BR /&gt;"items.entity_type": "items.entity_type",&lt;BR /&gt;"items.citizenship": "items.citizenship",&lt;BR /&gt;"items.nationality": "items.nationality",&lt;BR /&gt;"items.business_name": "items.business_name",&lt;BR /&gt;"items.customer_type": "items.customer_type",&lt;BR /&gt;"items.first_name": "items.first_name"&lt;BR /&gt;}&lt;BR /&gt;}, {&lt;BR /&gt;"operation": "modify-overwrite-beta",&lt;BR /&gt;"spec": {&lt;BR /&gt;"items": {&lt;BR /&gt;"*": "=ifEmpty(@(1,&amp;amp;),'')"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}, {&lt;BR /&gt;"operation": "shift",&lt;BR /&gt;"spec": {&lt;BR /&gt;"systemId": "systemId",&lt;BR /&gt;"systemName": "systemName",&lt;BR /&gt;"items": "items"&lt;BR /&gt;}&lt;BR /&gt;}]&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 11:07:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-lists-and-objects-regrouping-with-JoltTransformJSON/m-p/369342#M240469</guid>
      <dc:creator>FediMannoubi</dc:creator>
      <dc:date>2023-04-25T11:07:57Z</dc:date>
    </item>
  </channel>
</rss>

