<?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>topic Re: How to read multiple json objects which is not an json array in talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363172#M127136</link>
    <description>&lt;P&gt;The looping in this case isn't down to the tExtractJSONFields component. The looping is actually handled by the tFileInputDelimited. Each JSON file is on a different row of the file. So the tFileInputDelimited is returning a row for each JSON snippet. I suspect that maybe your tFileInputDelimited may need its row separator changed. Mine is set to the default of "\n".&lt;/P&gt;</description>
    <pubDate>Fri, 27 Aug 2021 13:39:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-08-27T13:39:33Z</dc:date>
    <item>
      <title>How to read multiple json objects which is not an json array in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363169#M127133</link>
      <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam new to talend try to learn things any help would be much appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam trying to read multiple json objects present in single file in to a table by dividing the values through textractJsonfield component &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current job is picking only first json value and writing the same to database below is the flow i used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tfileInputDelimeted --&amp;gt; textractJsonFields ---&amp;gt; db &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my file format is as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{tranid:"1212", "user":{"name":"123","addr":"786 rt"}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{tranid:"1213", "user":{"name":"345","addr":"4234 iu"}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my input file has the json objects as above .. if its like array i was able to read all the data thrgh extractjson component with no issues ,but the real thing comes up when its not an array of objects and it is reading only the first object which is tranid:1212 data &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363169#M127133</guid>
      <dc:creator>HVasa1630039830</dc:creator>
      <dc:date>2024-11-15T23:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to read multiple json objects which is not an json array in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363170#M127134</link>
      <description>&lt;P&gt;I have written a job where this works. It looks like below. You can see the result of running it as well (I added an extra row of data to the data you supplied)....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Hur5YAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146412i86231C268F6BE898/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Hur5YAAR.png" alt="0695b00000Hur5YAAR.png" /&gt;&lt;/span&gt;My tExtractJSONField was configured like this....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Hur5dAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144629i46769294DBF083D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Hur5dAAB.png" alt="0695b00000Hur5dAAB.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does that point you towards where your job needs to be updated? If not, can you post more details about your job?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 10:35:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363170#M127134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-27T10:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to read multiple json objects which is not an json array in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363171#M127135</link>
      <description>&lt;P&gt;Hi Thanks for the reply .. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the smae earlier but it was reading only the first object of json not the second one .. what properties you defined for the component of extractjsonfield to loop for the second json object ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as the below two json objects are seperatly flowing in how you looped through them ?? for tranid 1212 and tranid 1213??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{tranid:"1212", "user":{"name":"123","addr":"786 rt"}}&lt;/P&gt;&lt;P&gt;{tranid:"1213", "user":{"name":"345","addr":"4234 iu"}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 12:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363171#M127135</guid>
      <dc:creator>HVasa1630039830</dc:creator>
      <dc:date>2021-08-27T12:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to read multiple json objects which is not an json array in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363172#M127136</link>
      <description>&lt;P&gt;The looping in this case isn't down to the tExtractJSONFields component. The looping is actually handled by the tFileInputDelimited. Each JSON file is on a different row of the file. So the tFileInputDelimited is returning a row for each JSON snippet. I suspect that maybe your tFileInputDelimited may need its row separator changed. Mine is set to the default of "\n".&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 13:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363172#M127136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-27T13:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to read multiple json objects which is not an json array in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363173#M127137</link>
      <description>&lt;P&gt;Sorry for the delayed response .. but some how in my case i was parsing the json objects and is reading only the first json value until or unless they are bounded together as json array .. if its a json aray it is able to loop all the elements &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 21:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363173#M127137</guid>
      <dc:creator>HVasa1630039830</dc:creator>
      <dc:date>2021-08-30T21:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to read multiple json objects which is not an json array in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363174#M127138</link>
      <description>&lt;P&gt;Can you please provide me the exact json file you are trying to read ???&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 21:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363174#M127138</guid>
      <dc:creator>HVasa1630039830</dc:creator>
      <dc:date>2021-08-30T21:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to read multiple json objects which is not an json array in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363175#M127139</link>
      <description>&lt;P&gt;My file looks exactly like this.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{tranid:"1212", "user":{"name":"123","addr":"786 rt"}}&lt;/P&gt;&lt;P&gt;{tranid:"1213", "user":{"name":"345","addr":"4234 iu"}}&lt;/P&gt;&lt;P&gt;{tranid:"1233", "user":{"name":"33545","addr":"4w3234 iu"}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each row is a ew JSON String. I assumed that is how yours is.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 00:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-multiple-json-objects-which-is-not-an-json-array-in/m-p/2363175#M127139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-31T00:25:46Z</dc:date>
    </item>
  </channel>
</rss>

