<?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: Need a jolt transfomation for my json input in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Need-a-jolt-transfomation-for-my-json-input/m-p/412401#M253432</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/132461"&gt;@Kumar1243&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try using the following spec:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "operation": "shift",
    "spec": {
      "Product": [
        "Product",
        "to_PlndIndepRqmtItem[0].Product"
      ],
      "Plant": [
        "Plant",
        "to_PlndIndepRqmtItem[0].Plant"
      ],
      "MRPArea": [
        "MRPArea",
        "to_PlndIndepRqmtItem[0].MRPArea"
      ],
      "PlndIndepRqmtType": [
        "PlndIndepRqmtType",
        "to_PlndIndepRqmtItem[0].PlndIndepRqmtType"
      ],
      "PlndIndepRqmtVersion": [
        "PlndIndepRqmtVersion",
        "to_PlndIndepRqmtItem[0].PlndIndepRqmtVersion"
      ],
      "RequirementPlan": [
        "RequirementPlan",
        "to_PlndIndepRqmtItem[0].RequirementPlan"
      ],
      "RequirementSegment": [
        "RequirementSegment",
        "to_PlndIndepRqmtItem[0].RequirementSegment"
      ],
      "PlndIndepRqmtPeriod": [
        "PlndIndepRqmtPeriod",
        "to_PlndIndepRqmtItem[0].PlndIndepRqmtPeriod"
      ],
      "PlndIndepRqmtIsActive": "PlndIndepRqmtIsActive",
      "NoWithdrawal": "NoWithdrawal",
      "DeleteOld": "DeleteOld",
      "PeriodType": "to_PlndIndepRqmtItem[0].PeriodType",
      "PlannedQuantity": "to_PlndIndepRqmtItem[0].PlannedQuantity",
      "UnitOfMeasure": "to_PlndIndepRqmtItem[0].UnitOfMeasure",
      "ProductionVersion": "to_PlndIndepRqmtItem[0].ProductionVersion"
    }
  }
]&lt;/LI-CODE&gt;&lt;P&gt;You can use the JoltTransformRecord&amp;nbsp; or JoltTransformJson processors.&amp;nbsp; The JoltTransfromRecord will allow you to define a schema for your multi-record input FlowFiles. The JoltTransformJson processor would require you to split you source FlowFile first so you have one record per FlowFile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1758548039881.png" style="width: 714px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46327iAB6AB29875A0B12F/image-dimensions/714x612?v=v2" width="714" height="612" role="button" title="MattWho_0-1758548039881.png" alt="MattWho_0-1758548039881.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this helps you get closer to success,.&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Sep 2025 13:37:30 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2025-09-22T13:37:30Z</dc:date>
    <item>
      <title>Need a jolt transfomation for my json input</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Need-a-jolt-transfomation-for-my-json-input/m-p/412387#M253423</link>
      <description>&lt;P&gt;Experts,&lt;/P&gt;&lt;P&gt;Provide me jolt transform for my json input shown below&lt;/P&gt;&lt;P&gt;Input json would be like below.&amp;nbsp;This is just one record. Actually there can be multiple records&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"Product": "4039",&lt;BR /&gt;"Plant": "1010",&lt;BR /&gt;"MRPArea": "",&lt;BR /&gt;"PlndIndepRqmtType": "VSE",&lt;BR /&gt;"PlndIndepRqmtVersion": "00",&lt;BR /&gt;"RequirementPlan": "",&lt;BR /&gt;"RequirementSegment": "",&lt;BR /&gt;"PlndIndepRqmtIsActive": "X",&lt;BR /&gt;"PlndIndepRqmtPeriod": "20250502",&lt;BR /&gt;"NoWithdrawal": "",&lt;BR /&gt;"DeleteOld": "",&lt;BR /&gt;"PeriodType": "2",&lt;BR /&gt;"PlannedQuantity": "20.000",&lt;BR /&gt;"UnitOfMeasure": "PC",&lt;BR /&gt;"ProductionVersion": ""&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Output what i am expecting as below&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;"Product": "4039",&lt;BR /&gt;"Plant": "1010",&lt;BR /&gt;"MRPArea": "",&lt;BR /&gt;"PlndIndepRqmtType": "VSE",&lt;BR /&gt;"PlndIndepRqmtVersion": "00",&lt;BR /&gt;"RequirementPlan": "",&lt;BR /&gt;"RequirementSegment": "",&lt;BR /&gt;"PlndIndepRqmtIsActive": "X",&lt;BR /&gt;"PlndIndepRqmtPeriod": "20250502",&lt;BR /&gt;"NoWithdrawal": "",&lt;BR /&gt;"DeleteOld": "",&lt;BR /&gt;"to_PlndIndepRqmtItem": [&lt;BR /&gt;{&lt;BR /&gt;"Product": "4039",&lt;BR /&gt;"Plant": "1010",&lt;BR /&gt;"MRPArea": "",&lt;BR /&gt;"PlndIndepRqmtType": "VSE",&lt;BR /&gt;"PlndIndepRqmtVersion": "00",&lt;BR /&gt;"RequirementPlan": "",&lt;BR /&gt;"RequirementSegment": "",&lt;BR /&gt;"PlndIndepRqmtPeriod": "20250502",&lt;BR /&gt;"PeriodType": "2",&lt;BR /&gt;"PlannedQuantity": "20.000",&lt;BR /&gt;"UnitOfMeasure": "PC",&lt;BR /&gt;"ProductionVersion": ""&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;"to_PlndIndepRqmtItem" array has some duplicate fileds from header.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Sep 2025 13:15:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Need-a-jolt-transfomation-for-my-json-input/m-p/412387#M253423</guid>
      <dc:creator>Kumar1243</dc:creator>
      <dc:date>2025-09-20T13:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need a jolt transfomation for my json input</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Need-a-jolt-transfomation-for-my-json-input/m-p/412401#M253432</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/132461"&gt;@Kumar1243&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try using the following spec:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "operation": "shift",
    "spec": {
      "Product": [
        "Product",
        "to_PlndIndepRqmtItem[0].Product"
      ],
      "Plant": [
        "Plant",
        "to_PlndIndepRqmtItem[0].Plant"
      ],
      "MRPArea": [
        "MRPArea",
        "to_PlndIndepRqmtItem[0].MRPArea"
      ],
      "PlndIndepRqmtType": [
        "PlndIndepRqmtType",
        "to_PlndIndepRqmtItem[0].PlndIndepRqmtType"
      ],
      "PlndIndepRqmtVersion": [
        "PlndIndepRqmtVersion",
        "to_PlndIndepRqmtItem[0].PlndIndepRqmtVersion"
      ],
      "RequirementPlan": [
        "RequirementPlan",
        "to_PlndIndepRqmtItem[0].RequirementPlan"
      ],
      "RequirementSegment": [
        "RequirementSegment",
        "to_PlndIndepRqmtItem[0].RequirementSegment"
      ],
      "PlndIndepRqmtPeriod": [
        "PlndIndepRqmtPeriod",
        "to_PlndIndepRqmtItem[0].PlndIndepRqmtPeriod"
      ],
      "PlndIndepRqmtIsActive": "PlndIndepRqmtIsActive",
      "NoWithdrawal": "NoWithdrawal",
      "DeleteOld": "DeleteOld",
      "PeriodType": "to_PlndIndepRqmtItem[0].PeriodType",
      "PlannedQuantity": "to_PlndIndepRqmtItem[0].PlannedQuantity",
      "UnitOfMeasure": "to_PlndIndepRqmtItem[0].UnitOfMeasure",
      "ProductionVersion": "to_PlndIndepRqmtItem[0].ProductionVersion"
    }
  }
]&lt;/LI-CODE&gt;&lt;P&gt;You can use the JoltTransformRecord&amp;nbsp; or JoltTransformJson processors.&amp;nbsp; The JoltTransfromRecord will allow you to define a schema for your multi-record input FlowFiles. The JoltTransformJson processor would require you to split you source FlowFile first so you have one record per FlowFile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1758548039881.png" style="width: 714px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46327iAB6AB29875A0B12F/image-dimensions/714x612?v=v2" width="714" height="612" role="button" title="MattWho_0-1758548039881.png" alt="MattWho_0-1758548039881.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this helps you get closer to success,.&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 13:37:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Need-a-jolt-transfomation-for-my-json-input/m-p/412401#M253432</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-09-22T13:37:30Z</dc:date>
    </item>
  </channel>
</rss>

