<?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 How create JSON Document of this format using tJSONDoc? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-create-JSON-Document-of-this-format-using-tJSONDoc/m-p/2218883#M13908</link>
    <description>&lt;P&gt;I have a single row/record with few fields:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;someFlag: boolean&lt;/P&gt; 
&lt;P&gt;fieldString1: String&lt;/P&gt; 
&lt;P&gt;fieldString2: String&lt;/P&gt; 
&lt;P&gt;fieldString3: String&lt;/P&gt; 
&lt;P&gt;and I need to create a json document formatted like this:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;{
  "document" : [ {    
    "settings" : [ {
      "someFlag" : true
    }, {
      "fieldString2" : "someText"
    }, {
      "fieldString3" : "SomeMoreText"
    }],
    "fieldString1" : "3068@myemail.mydomain.com"    
  } ]
}&lt;/PRE&gt; 
&lt;P&gt;I am using&amp;nbsp;tJSONDoc (tJSONDocOutput) by JLolling to create the rest of the document, but this section has proven to be too hard.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Ideas or suggestions very welcome.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:11:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T06:11:53Z</dc:date>
    <item>
      <title>How create JSON Document of this format using tJSONDoc?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-create-JSON-Document-of-this-format-using-tJSONDoc/m-p/2218883#M13908</link>
      <description>&lt;P&gt;I have a single row/record with few fields:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;someFlag: boolean&lt;/P&gt; 
&lt;P&gt;fieldString1: String&lt;/P&gt; 
&lt;P&gt;fieldString2: String&lt;/P&gt; 
&lt;P&gt;fieldString3: String&lt;/P&gt; 
&lt;P&gt;and I need to create a json document formatted like this:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;{
  "document" : [ {    
    "settings" : [ {
      "someFlag" : true
    }, {
      "fieldString2" : "someText"
    }, {
      "fieldString3" : "SomeMoreText"
    }],
    "fieldString1" : "3068@myemail.mydomain.com"    
  } ]
}&lt;/PRE&gt; 
&lt;P&gt;I am using&amp;nbsp;tJSONDoc (tJSONDocOutput) by JLolling to create the rest of the document, but this section has proven to be too hard.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Ideas or suggestions very welcome.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-create-JSON-Document-of-this-format-using-tJSONDoc/m-p/2218883#M13908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: How create JSON Document of this format using tJSONDoc?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-create-JSON-Document-of-this-format-using-tJSONDoc/m-p/2218884#M13909</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; I have a small doubt in your requirement here. The output data for String2 and String3 are in list at different level compared to boolean value and field1. So could you please advise how you are arranging them in input side in column fashion?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please advise the reason for String 2 and String 3 at different level in JSON compared to String 1?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 09:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-create-JSON-Document-of-this-format-using-tJSONDoc/m-p/2218884#M13909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-01T09:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: How create JSON Document of this format using tJSONDoc?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-create-JSON-Document-of-this-format-using-tJSONDoc/m-p/2218885#M13910</link>
      <description>Hi Nikhil,&lt;BR /&gt;This is our requirements. Data source is a single database table row, which needs to be arranged as a relatively complex json document as per external party requirements, problematic snippet of which I described in the OP.</description>
      <pubDate>Tue, 02 Apr 2019 02:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-create-JSON-Document-of-this-format-using-tJSONDoc/m-p/2218885#M13910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-02T02:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How create JSON Document of this format using tJSONDoc?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-create-JSON-Document-of-this-format-using-tJSONDoc/m-p/2218886#M13911</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please try to create JSON conversion using the metadata area of JSON?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.talend.com/reader/lqV2ftgSbYSEBU9Bwsd61w/hCTD2DEpip2q~4n1MxWEMg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/lqV2ftgSbYSEBU9Bwsd61w/hCTD2DEpip2q~4n1MxWEMg&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;If you are facing any issues, could you please share the component screen shots so that we will know the exact issue while doing the conversion?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 10:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-create-JSON-Document-of-this-format-using-tJSONDoc/m-p/2218886#M13911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-02T10:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: How create JSON Document of this format using tJSONDoc?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-create-JSON-Document-of-this-format-using-tJSONDoc/m-p/2218887#M13912</link>
      <description>&lt;P&gt;try this&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TalendImage.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M46X.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130973i5745443D87BFEE12/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M46X.jpg" alt="0683p000009M46X.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Output&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;{"document": [&amp;nbsp; {"setting":[&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{"flag":"true"},&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{"str1":"abc"},&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {"str2":"def"}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ],&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"str3":"xxxxx@gmail.com"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;/P&gt; 
&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 10:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-create-JSON-Document-of-this-format-using-tJSONDoc/m-p/2218887#M13912</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-04-02T10:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How create JSON Document of this format using tJSONDoc?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-create-JSON-Document-of-this-format-using-tJSONDoc/m-p/2218888#M13913</link>
      <description>Thanks Abhishek and Nikhil, 
&lt;BR /&gt;However, using Talend delivered JSON components is not an option as our current solution uses those and it doesn't meet all requirements (in particular, empty fields do not get suppressed, which breaks everything), hence Talend Customer Solutions suggested trying this component from JLolling.</description>
      <pubDate>Wed, 03 Apr 2019 01:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-create-JSON-Document-of-this-format-using-tJSONDoc/m-p/2218888#M13913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-03T01:47:58Z</dc:date>
    </item>
  </channel>
</rss>

