<?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: Nested Json Structure in Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293294#M66286</link>
    <description>Also I am getting the below error while loading to byte datatype column in twritejsonfield. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; Starting job JOB_JSON_RESULT_TEST at 16:00 21/06/2019. [statistics] connecting to socket on port 3349 [statistics] connected [Fatal Error] :1:177: Character reference "&amp;amp;# [FATAL]: dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST - tWriteJSONField_1_In nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 net.sf.json.JSONException: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:386) at dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST.tWriteJSONField_1_InProcess(JOB_JSON_RESULT_TEST.java:4029) at dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST$1ThreadXMLField_tWriteJSONField_1_Out.run(JOB_JSON_RESULT_TEST.java:2166) Caused by: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 at nu.xom.Builder.build(Unknown Source) at nu.xom.Builder.build(Unknown Source) at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:364) ... 2 more Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 177; Character reference "&amp;amp;# at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239) ... 5 more Exception in component tWriteJSONField_1_In (JOB_JSON_RESULT_TEST) [FATAL]: dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST - tWriteJSONField_1_In nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 net.sf.json.JSONException: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:386) at dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST.tWriteJSONField_1_InProcess(JOB_JSON_RESULT_TEST.java:4029) at dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST$1ThreadXMLField_tWriteJSONField_1_Out.run(JOB_JSON_RESULT_TEST.java:2166) Caused by: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 at nu.xom.Builder.build(Unknown Source) at nu.xom.Builder.build(Unknown Source) at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:364) ... 2 more Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 177; Character reference "&amp;amp;# at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239) ... 5 more net.sf.json.JSONException: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:386) at dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST.tWriteJSONField_1_InProcess(JOB_JSON_RESULT_TEST.java:4029) at dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST$1ThreadXMLField_tWriteJSONField_1_Out.run(JOB_JSON_RESULT_TEST.java:2166) Caused by: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 at nu.xom.Builder.build(Unknown Source) at nu.xom.Builder.build(Unknown Source) at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:364) ... 2 more Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 177; Character reference "&amp;amp;# at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239) ... 5 more [statistics] disconnected Job JOB_JSON_RESULT_TEST ended at 16:00 21/06/2019. [exit code=1] Kindly help me in resolving. Thanks and Regards, Priya</description>
    <pubDate>Fri, 21 Jun 2019 11:43:24 GMT</pubDate>
    <dc:creator>PRIYABOSCH</dc:creator>
    <dc:date>2019-06-21T11:43:24Z</dc:date>
    <item>
      <title>Nested Json Structure in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293290#M66282</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am very new to Talend. I have to prepare a json file with nested structure. I have used twritejsonfield component for that. I am just trying to explore the examples given in the talend portal, and trying to implement the job. since the examples are very simple it is difficult for me to create the complex structure. &lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tab_talend.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M61s.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149082iAB6DE1A4A1FD3D40/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M61s.png" alt="0683p000009M61s.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a table with 3 composite key columns. the table will be looking like the screenshot. I have to create a nested json file based on this composite keys. for example in the above table, the marked columns will be having same set of value for first two columns and the third column data will be different.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;so the target JSON structure should be LIKE given below.&lt;/P&gt; 
&lt;P&gt;1A{&lt;/P&gt; 
&lt;P&gt;1B{&lt;/P&gt; 
&lt;P&gt;11,&lt;/P&gt; 
&lt;P&gt;12,&lt;/P&gt; 
&lt;P&gt;13,&lt;/P&gt; 
&lt;P&gt;14}&lt;/P&gt; 
&lt;P&gt;}&lt;/P&gt; 
&lt;P&gt;}&lt;/P&gt; 
&lt;P&gt;i have grouped the above 3 columns with TWRITEJSONFILED , groupby&amp;nbsp;option&amp;nbsp;but it provides strange results. the mapping screenshot is given below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="twjf.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M62G.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151376i4CC81EFB9DF7ECAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M62G.png" alt="0683p000009M62G.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Please help me in preparing the correct json file format.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in Advance.&lt;/P&gt; 
&lt;P&gt;Priya&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 15:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293290#M66282</guid>
      <dc:creator>PRIYABOSCH</dc:creator>
      <dc:date>2019-06-19T15:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Json Structure in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293291#M66283</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the below job flow and the result set whether it suits the requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Subhadip&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lvz6"&gt;JSON4.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvwS"&gt;JSON5.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lvc4"&gt;JSON3.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lvpr"&gt;JSON2.JPG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvRg"&gt;JSON1.JPG&lt;/A&gt;</description>
      <pubDate>Wed, 19 Jun 2019 16:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293291#M66283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-19T16:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Json Structure in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293292#M66284</link>
      <description>&lt;P&gt;Dear Subhadip,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you verymuch for your reply. could you please share the screenshot of SCHEMA mapping in TWRITEJSONFILED COMPONENT. this is to know which one is loop element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 07:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293292#M66284</guid>
      <dc:creator>PRIYABOSCH</dc:creator>
      <dc:date>2019-06-21T07:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Json Structure in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293293#M66285</link>
      <description>&lt;P&gt;Dear Subhadip,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks a ton. I found the correct screenshot. could you please let me know why the "set as group element " option is not available for the first key.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="groupelement.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5Nm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151609iCB4C1618615AD9A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5Nm.png" alt="0683p000009M5Nm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Thanks and Regards,&lt;/P&gt; 
&lt;P&gt;Priya&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 11:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293293#M66285</guid>
      <dc:creator>PRIYABOSCH</dc:creator>
      <dc:date>2019-06-21T11:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Json Structure in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293294#M66286</link>
      <description>Also I am getting the below error while loading to byte datatype column in twritejsonfield. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; Starting job JOB_JSON_RESULT_TEST at 16:00 21/06/2019. [statistics] connecting to socket on port 3349 [statistics] connected [Fatal Error] :1:177: Character reference "&amp;amp;# [FATAL]: dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST - tWriteJSONField_1_In nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 net.sf.json.JSONException: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:386) at dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST.tWriteJSONField_1_InProcess(JOB_JSON_RESULT_TEST.java:4029) at dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST$1ThreadXMLField_tWriteJSONField_1_Out.run(JOB_JSON_RESULT_TEST.java:2166) Caused by: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 at nu.xom.Builder.build(Unknown Source) at nu.xom.Builder.build(Unknown Source) at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:364) ... 2 more Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 177; Character reference "&amp;amp;# at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239) ... 5 more Exception in component tWriteJSONField_1_In (JOB_JSON_RESULT_TEST) [FATAL]: dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST - tWriteJSONField_1_In nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 net.sf.json.JSONException: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:386) at dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST.tWriteJSONField_1_InProcess(JOB_JSON_RESULT_TEST.java:4029) at dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST$1ThreadXMLField_tWriteJSONField_1_Out.run(JOB_JSON_RESULT_TEST.java:2166) Caused by: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 at nu.xom.Builder.build(Unknown Source) at nu.xom.Builder.build(Unknown Source) at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:364) ... 2 more Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 177; Character reference "&amp;amp;# at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239) ... 5 more net.sf.json.JSONException: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:386) at dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST.tWriteJSONField_1_InProcess(JOB_JSON_RESULT_TEST.java:4029) at dap4_pipelines.job_json_result_test_0_1.JOB_JSON_RESULT_TEST$1ThreadXMLField_tWriteJSONField_1_Out.run(JOB_JSON_RESULT_TEST.java:2166) Caused by: nu.xom.ParsingException: Character reference "&amp;amp;# at line 1, column 177 at nu.xom.Builder.build(Unknown Source) at nu.xom.Builder.build(Unknown Source) at net.sf.json.xml.XMLSerializer.read(XMLSerializer.java:364) ... 2 more Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 177; Character reference "&amp;amp;# at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239) ... 5 more [statistics] disconnected Job JOB_JSON_RESULT_TEST ended at 16:00 21/06/2019. [exit code=1] Kindly help me in resolving. Thanks and Regards, Priya</description>
      <pubDate>Fri, 21 Jun 2019 11:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293294#M66286</guid>
      <dc:creator>PRIYABOSCH</dc:creator>
      <dc:date>2019-06-21T11:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Json Structure in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293295#M66287</link>
      <description>&lt;P&gt;Dear Subhadip/experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to load the data coming out of twritejsonfield component to a json file. if I include toutputjsonfile component, I get only root node in the mapping area.&lt;/P&gt;
&lt;P&gt;also I need to write the json data prepared with some headers like given below,&lt;/P&gt;
&lt;DIV class="line number1 index0 alt2"&gt;
 &lt;FONT face="Courier New" size="3"&gt;{ &amp;nbsp;&lt;/FONT&gt;
&lt;/DIV&gt;
&lt;DIV class="line number2 index1 alt1"&gt;
 &lt;FONT face="Courier New" size="3"&gt;"$schema": "&lt;/FONT&gt;
 &lt;A href="http://json-schema.org/draft-07/schema#" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://json-schema.org/draft-07/schema#&lt;/A&gt;
 &lt;FONT face="Courier New" size="3"&gt;",&lt;/FONT&gt;
&lt;/DIV&gt;
&lt;DIV class="line number3 index2 alt2"&gt;
 &lt;FONT face="Courier New" size="3"&gt;"title": "data Identifier % Quality Data", &amp;nbsp;&lt;/FONT&gt;
&lt;/DIV&gt;
&lt;DIV class="line number4 index3 alt1"&gt;
 &lt;FONT face="Courier New" size="3"&gt;"description": "JSON Schema for&amp;nbsp;data IDs &lt;/FONT&gt;
&lt;/DIV&gt;
&lt;DIV class="line number4 index3 alt1"&gt;
 {
&lt;/DIV&gt;
&lt;DIV class="line number4 index3 alt1"&gt;
 ---
&lt;/DIV&gt;
&lt;DIV class="line number4 index3 alt1"&gt;
 ---
&lt;/DIV&gt;
&lt;DIV class="line number4 index3 alt1"&gt;
 }
&lt;/DIV&gt;
&lt;DIV class="line number4 index3 alt1"&gt;
 }
 &lt;FONT face="Courier New" size="3"&gt;how&amp;nbsp;this&amp;nbsp;can&amp;nbsp;be&amp;nbsp;achieved&amp;nbsp;with&amp;nbsp;twritejsonfield&amp;nbsp;or&amp;nbsp;toutputjsonfile&amp;nbsp;component.&amp;nbsp;&lt;/FONT&gt;
&lt;/DIV&gt;
&lt;DIV class="line number4 index3 alt1"&gt;
 &amp;nbsp;
&lt;/DIV&gt;
&lt;DIV class="line number4 index3 alt1"&gt;
 &lt;FONT face="Courier New" size="3"&gt;Regards,&lt;/FONT&gt;
&lt;/DIV&gt;
&lt;DIV class="line number4 index3 alt1"&gt;
 Priya
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jun 2019 11:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293295#M66287</guid>
      <dc:creator>PRIYABOSCH</dc:creator>
      <dc:date>2019-06-25T11:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Json Structure in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293296#M66288</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006ysNmAAI"&gt;@PRIYABOSCH&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please mark this topic as solved if the solution suits your requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Subhadip&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 16:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Json-Structure-in-Talend/m-p/2293296#M66288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-25T16:14:26Z</dc:date>
    </item>
  </channel>
</rss>

