<?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 create a JSON nested where the objects have different names in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294097#M67006</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKk8AAG"&gt;@lli&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can we get a sample job design how to do the above structure.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Bharath.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jul 2018 16:05:55 GMT</pubDate>
    <dc:creator>javvaji</dc:creator>
    <dc:date>2018-07-26T16:05:55Z</dc:date>
    <item>
      <title>How to create a JSON nested where the objects have different names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294093#M67002</link>
      <description>&lt;P&gt;Hello guys!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following table structure and I'd like to create a JSON file using the tWriteJSONField.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FirstName | LastName&lt;BR /&gt;John&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | McCain&lt;BR /&gt;Peter&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | Fitzgerald&lt;BR /&gt;Pablo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | De Los Santos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My JSON should be something like that below. The name of the nest could be created using the Numeric.sequence function I suppose.&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;"0" : {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"FirstName" : "John",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"LastName" : "McCain"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;},&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;"1" : {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"FirstName" : "Peter",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"LastName" : "Fitzgerald"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;},&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;"2" : {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"FirstName" : "Pablo",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"LastName" : "De Los Santos"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 14:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294093#M67002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-23T14:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a JSON nested where the objects have different names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294094#M67003</link>
      <description>&lt;P&gt;Hello &lt;BR /&gt;The element name must be defined before the job execution and it can't be a variable, so it is impossible to generate a json string like you showed with tWriteJsonField.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 02:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294094#M67003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-30T02:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a JSON nested where the objects have different names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294095#M67004</link>
      <description>&lt;P&gt;You can do such things - and more - with the component tJSONDocOutput. Get them in Talend Exchange or Github: &lt;A href="https://github.com/jlolling" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/jlolling&lt;/A&gt; (more up-to-date)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2017 08:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294095#M67004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-02T08:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a JSON nested where the objects have different names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294096#M67005</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LKk8AAG"&gt;@lli&lt;/A&gt; wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;You can do such things - and more - with the component tJSONDocOutput. Get them in Talend Exchange or Github: &lt;A href="https://github.com/jlolling" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/jlolling&lt;/A&gt; (more up-to-date)&amp;nbsp;&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Thanks a milion! &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 11:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294096#M67005</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-03T11:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a JSON nested where the objects have different names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294097#M67006</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKk8AAG"&gt;@lli&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can we get a sample job design how to do the above structure.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Bharath.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 16:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294097#M67006</guid>
      <dc:creator>javvaji</dc:creator>
      <dc:date>2018-07-26T16:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a JSON nested where the objects have different names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294098#M67007</link>
      <description>&lt;P&gt;This is still not very easy. The output component can use values as field names but the current version is not flexible enough to add per row one new attribute+object. I have in my current project a similar problem and will solve this by update the components in the next days.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jul 2018 23:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294098#M67007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-28T23:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a JSON nested where the objects have different names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294099#M67008</link>
      <description>&lt;P&gt;I can currently create this:&lt;/P&gt;
&lt;PRE&gt;[ {
  "0" : {
    "firstname" : "John",
    "lastname" : "McCain"
  }
}, {
  "1" : {
    "firstname" : "Peter",
    "lastname" : "Fritzgerald"
  }
}, {
  "2" : {
    "firstname" : "Pablo",
    "lastname" : "De Los Santos"
  }
} ]&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Jul 2018 00:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294099#M67008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-29T00:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a JSON nested where the objects have different names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294100#M67009</link>
      <description>&lt;P&gt;I have solved the issue! In the next days I will test it if there is no unwanted impact to other parts and publish the new version.&lt;/P&gt; 
&lt;P&gt;There is no change within the configuration of a component.&lt;/P&gt; 
&lt;PRE&gt;{
  "0" : {
    "firstname" : "John",
    "lastname" : "McCain"
  },
  "1" : {
    "firstname" : "Peter",
    "lastname" : "Fritzgerald"
  },
  "2" : {
    "firstname" : "Pablo",
    "lastname" : "De Los Santos"
  }
}&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJSONDocOutput_example_dynamic_objects.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyqY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148862iF5FC4EAADEBB5DAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyqY.png" alt="0683p000009LyqY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jul 2018 10:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294100#M67009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-29T10:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a JSON nested where the objects have different names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294101#M67010</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKk8AAG"&gt;@lli&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;Thanks for the reply. I will take this as reference and try to complete and let you know.&lt;/P&gt; 
&lt;P&gt;Once again thanks for the quick response.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Bharath.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 11:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294101#M67010</guid>
      <dc:creator>javvaji</dc:creator>
      <dc:date>2018-07-30T11:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a JSON nested where the objects have different names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294102#M67011</link>
      <description>&lt;P&gt;I have just published on Talend Exchange and Github the new version (14.0) of the tJSONDoc components which allows the described job design.&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://exchange.talend.com/#marketplaceproductoverview:marketplace=marketplace%252F1&amp;amp;p=marketplace%252F1%252Fproducts%252F1438&amp;amp;pi=marketplace%252F1%252Fproducts%252F1438%252Fitems%252F2794" target="_blank" rel="nofollow noopener noreferrer"&gt;https://exchange.talend.com/#marketplaceproductoverview:marketplace=marketplace%252F1&amp;amp;p=marketplace%252F1%252Fproducts%252F1438&amp;amp;pi=marketplace%252F1%252Fproducts%252F1438%252Fitems%252F2794&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://github.com/jlolling/talendcomp_tJSONDoc/releases" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/jlolling/talendcomp_tJSONDoc/releases&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 16:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294102#M67011</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-30T16:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a JSON nested where the objects have different names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294103#M67012</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKk8AAG"&gt;@lli&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We have tried the example which you sent but we are unable to get the expected json. Below are the issues&lt;/P&gt; 
&lt;P&gt;For parent json path you mentioned&amp;nbsp;String.valueOf(row2.index), we used same way but we are getting null value. And one more thing we are getting only one value in object but here we need to get multiple values as object. I don't see an multiple objects in an object option. Could help me on this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Source:&lt;/P&gt; 
&lt;P&gt;address_id,address_line_1,city,address_type&lt;BR /&gt;12345,1000 Main St.,Boston,home&lt;BR /&gt;6789,1000 Work Dr.,Boston,work&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Expected Output:&lt;/P&gt; 
&lt;P&gt;"address":&lt;BR /&gt;{&lt;BR /&gt;"home":&lt;BR /&gt;{&lt;BR /&gt;"address_id":"123245",&lt;BR /&gt;"address_line_1":"1000 Main St.",&lt;BR /&gt;"city":"Boston",&lt;BR /&gt;"country":"US",&lt;BR /&gt;"state":"MA"&lt;BR /&gt;},&lt;BR /&gt;"work":&lt;BR /&gt;{&lt;BR /&gt;"address_id":"6789",&lt;BR /&gt;"address_line_1":"1000 Work Dr.",&lt;BR /&gt;"city":"Boston",&lt;BR /&gt;"country":"US",&lt;BR /&gt;"state":"MA"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Bharath.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294103#M67012</guid>
      <dc:creator>javvaji</dc:creator>
      <dc:date>2018-08-14T14:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a JSON nested where the objects have different names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294104#M67013</link>
      <description>&lt;P&gt;It was quite easy to do:&lt;/P&gt; 
&lt;PRE&gt;{
  "home" : {
    "address_id" : "12345",
    "address_line_1" : "1000 Main St.",
    "city" : "Boston"
  },
  "work" : {
    "address_id" : "6789",
    "address_line_1" : "1000 Work Dr.",
    "city" : "Boston"
  }
}&lt;/PRE&gt; 
&lt;P&gt;I have attached the demo job as item export. Use the item import to load this job into your studio. The job is created with Talend 6.5.1&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ltjf"&gt;test_tJSONDocOutput_dynamic_object2.zip&lt;/A&gt;</description>
      <pubDate>Tue, 14 Aug 2018 22:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294104#M67013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-14T22:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a JSON nested where the objects have different names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294105#M67014</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKk8AAG"&gt;@lli&lt;/A&gt;&amp;nbsp;Hi, Can you send us the sample job you created for this scenario :&lt;/P&gt; 
&lt;P&gt;Scenario 2: Example of multi-level document creation&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need to see how data look like in tfixedfileinput.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 17:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-a-JSON-nested-where-the-objects-have-different/m-p/2294105#M67014</guid>
      <dc:creator>ragraw22</dc:creator>
      <dc:date>2018-08-30T17:16:22Z</dc:date>
    </item>
  </channel>
</rss>

