<?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 transformation based on unstable json format in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Jolt-transformation-based-on-unstable-json-format/m-p/412888#M253753</link>
    <description>&lt;P&gt;Generally, I agree with the comments and JOLT is not so flexible for this purpose. In my case I did it with multiple matches for various responses, but still format is needed. I will close the ticket, thank you&amp;nbsp;&lt;SPAN&gt;Andrés&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/114383"&gt;@vafs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2025 07:28:40 GMT</pubDate>
    <dc:creator>PeterKa</dc:creator>
    <dc:date>2025-11-20T07:28:40Z</dc:date>
    <item>
      <title>Jolt transformation based on unstable json format</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Jolt-transformation-based-on-unstable-json-format/m-p/412806#M253690</link>
      <description>&lt;P&gt;Hi, I am looking how to handle cases when json format may vary between different client responses. On response&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
"data": [
{
"ID": "123",
"Name": "Queen"
},
{
"ID": "456",
"Name": "King"
}
]
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;we apply following jolt transform:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
{
"operation": "shift",
"spec": {
"data": {
"*": {
"ID": {
"456": {
"@(2,Name)": "Name"
}
}
}
}
}
}
]&lt;/LI-CODE&gt;&lt;P&gt;but some times response is coming without leading "{"data":&lt;BR /&gt;and our transformation fails. So, generally, how can we query json with JOLT if we know for instance that Name and ID are next to each other somewhere in the structure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 08:26:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Jolt-transformation-based-on-unstable-json-format/m-p/412806#M253690</guid>
      <dc:creator>PeterKa</dc:creator>
      <dc:date>2025-11-03T08:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Jolt transformation based on unstable json format</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Jolt-transformation-based-on-unstable-json-format/m-p/412810#M253694</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/135366"&gt;@PeterKa&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reaching our Community.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this, JOLT always need to have the values, it's not very much flexible if an expected value is missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, something that JOLT offers is the default operation, that may help you to add&amp;nbsp;&lt;SPAN&gt;"{"data": if it is already included.&amp;nbsp;&lt;BR /&gt;You can see it here:&amp;nbsp;&lt;A href="https://lucabiscotti.github.io/jolt-guide.github.io/#default" target="_blank"&gt;https://lucabiscotti.github.io/jolt-guide.github.io/#default&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That option may help you to have the needed format always before the shift.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 16:44:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Jolt-transformation-based-on-unstable-json-format/m-p/412810#M253694</guid>
      <dc:creator>vafs</dc:creator>
      <dc:date>2025-11-04T16:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Jolt transformation based on unstable json format</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Jolt-transformation-based-on-unstable-json-format/m-p/412886#M253751</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/135366"&gt;@PeterKa&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 23:00:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Jolt-transformation-based-on-unstable-json-format/m-p/412886#M253751</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2025-11-19T23:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Jolt transformation based on unstable json format</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Jolt-transformation-based-on-unstable-json-format/m-p/412888#M253753</link>
      <description>&lt;P&gt;Generally, I agree with the comments and JOLT is not so flexible for this purpose. In my case I did it with multiple matches for various responses, but still format is needed. I will close the ticket, thank you&amp;nbsp;&lt;SPAN&gt;Andrés&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/114383"&gt;@vafs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 07:28:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Jolt-transformation-based-on-unstable-json-format/m-p/412888#M253753</guid>
      <dc:creator>PeterKa</dc:creator>
      <dc:date>2025-11-20T07:28:40Z</dc:date>
    </item>
  </channel>
</rss>

