<?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 Converting SQL record to JSON in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Converting-SQL-record-to-JSON/m-p/336660#M232338</link>
    <description>&lt;P&gt;I am trying to read records from a SQL source and put them in a s3 bucket.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently my flow is as follows:&lt;/P&gt;&lt;P&gt;QueryDBTableRecord (SQL record to CSV) &amp;gt;&amp;gt;&amp;gt; ConvertRecord (CSV to JSON conversion) &amp;gt;&amp;gt;&amp;gt; JOLT (Rarrange the json to suit) &amp;gt;&amp;gt;&amp;gt; PutS3Oject (Duh)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly is this a valid route? It seems like there has been a lot of changes in the last few years and many tutorials are outdated and I think this is the current best practise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly if this is correct, I'm struggling with the JOLT format. I want to transform this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Katsuki_0-1645354319308.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33624iCF7792FB7288CE34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Katsuki_0-1645354319308.png" alt="Katsuki_0-1645354319308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;into this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Katsuki_1-1645354339178.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33625iBAADF23B36333F02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Katsuki_1-1645354339178.png" alt="Katsuki_1-1645354339178.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've made a start with:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Katsuki_2-1645354363547.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33626iE488CCA42B94B0B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Katsuki_2-1645354363547.png" alt="Katsuki_2-1645354363547.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this moves the two items up to the upper level as desired but I am struggling to make pairs from the data points instead of getting a flat array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 20 Feb 2022 10:53:55 GMT</pubDate>
    <dc:creator>Katsuki</dc:creator>
    <dc:date>2022-02-20T10:53:55Z</dc:date>
  </channel>
</rss>

