<?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 tWriteJSONField please help building thos JSON , with array and subcategories in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-please-help-building-thos-JSON-with-array-and/m-p/2295544#M68309</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;We have this structure that we need to create in tWriteJsonField and we cannot get exact structure. I below Json we have an array . So,&lt;BR /&gt;Glass - is category of product there could be multiple categories . For each of this category we need to display Ship_To,ShipTo_Name.......Dec(UOM). All Values under glass category group by state.&lt;BR /&gt;So, for state PA in this example we have 3 customers we need to list values for each .&lt;BR /&gt;Important that at the end of each state report we need to sum all 3 customer (in this example) and show totals .&lt;/P&gt; 
&lt;P&gt;So my issue is building array and all brackets exactly as show in the example . Also how do we group like this? can anyone show how tWriteJsonField would look like to have this structure.&lt;/P&gt; 
&lt;P&gt;Another issue, i have actually json file with data in it (that was generated by other system sql server) i thought i could just import it to use that structure but talend does not let me import it.&lt;/P&gt; 
&lt;P&gt;Thank you in advance&lt;BR /&gt;JSON:&lt;BR /&gt;-----&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;{&lt;BR /&gt;"title": "Summary Report ",&lt;BR /&gt;"reportDate": "15/06/2018",&lt;BR /&gt;"Customer":"ALL",&lt;BR /&gt;"reportName": "Summary",&lt;BR /&gt;"duration": "3/15/2018",&lt;BR /&gt;"otherDetails": {&lt;BR /&gt;"Product_Category": "ALL",&lt;BR /&gt;"State(s)": "ALL",&lt;BR /&gt;"Ship_To_Account(s)": "ALL"&lt;BR /&gt;},&lt;BR /&gt;"datas": [&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;{&lt;BR /&gt;"Glas": [&lt;/P&gt; 
&lt;P&gt;{&lt;BR /&gt;"Ship_To": "9999998",&lt;BR /&gt;"ShipTo_Name": "HOME HOME",&lt;BR /&gt;"City": "Philly",&lt;BR /&gt;"State": "PA",&lt;BR /&gt;"Total MSF Shipped": 0.660,&lt;BR /&gt;"Jan(MSF)": 0.000,&lt;BR /&gt;"Feb(MSF)": 0.660,&lt;BR /&gt;"Mar(MSF)": 0.000,&lt;BR /&gt;"Apr(MSF)": 0.000,&lt;BR /&gt;"May(MSF)": 0.000 ,&lt;BR /&gt;"Jun(MSF)": 0.000 ,&lt;BR /&gt;"Jul(MSF)": 0.000 ,&lt;BR /&gt;"Aug(MSF)": 0.000,&lt;BR /&gt;"Sep(MSF)": 0.000,&lt;BR /&gt;"Oct(MSF)": 0.000 ,&lt;BR /&gt;"Nov(MSF)": 0.000,&lt;BR /&gt;"Dec(MSF)": 0.000&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"Ship_To": "7777",&lt;BR /&gt;"ShipTo_Name": "BLDG ",&lt;BR /&gt;"City": "Philly",&lt;BR /&gt;"State": "PA",&lt;BR /&gt;"Total MSF Shipped": 7.040,&lt;BR /&gt;"Jan(MSF)": 0.000,&lt;BR /&gt;"Feb(MSF)": 0.000,&lt;BR /&gt;"Mar(MSF)": 1.408,&lt;BR /&gt;"Apr(MSF)": 4.224,&lt;BR /&gt;"May(MSF)": 0.000 ,&lt;BR /&gt;"Jun(MSF)": 1.408 ,&lt;BR /&gt;"Jul(MSF)": 0.000 ,&lt;BR /&gt;"Aug(MSF)": 0.000,&lt;BR /&gt;"Sep(MSF)": 0.000,&lt;BR /&gt;"Oct(MSF)": 0.000 ,&lt;BR /&gt;"Nov(MSF)": 0.000,&lt;BR /&gt;"Dec(MSF)": 0.000&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"Ship_To": "2312312312",&lt;BR /&gt;"ShipTo_Name": "Nameof Ship to",&lt;BR /&gt;"City": "Philly",&lt;BR /&gt;"State": "PA",&lt;BR /&gt;"Total MSF Shipped": 5.632,&lt;BR /&gt;"Jan(MSF)": 0.000,&lt;BR /&gt;"Feb(MSF)": 2.816,&lt;BR /&gt;"Mar(MSF)": 0.000,&lt;BR /&gt;"Apr(MSF)": 1.408,&lt;BR /&gt;"May(MSF)": 1.408 ,&lt;BR /&gt;"Jun(MSF)": 0.000 ,&lt;BR /&gt;"Jul(MSF)": 0.000 ,&lt;BR /&gt;"Aug(MSF)": 0.000,&lt;BR /&gt;"Sep(MSF)": 0.000,&lt;BR /&gt;"Oct(MSF)": 0.000 ,&lt;BR /&gt;"Nov(MSF)": 0.000,&lt;BR /&gt;"Dec(MSF)": 0.000&lt;BR /&gt;}&lt;BR /&gt;,{&lt;BR /&gt;"Total for State BC":[13.332, 0.000,3.476, 1.408,5.632,&lt;BR /&gt;1.408,1.408, 0.000,0.000, 0.000,0.000, 0.000,&lt;BR /&gt;0.000]&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt; 
&lt;P&gt;},&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jun 2018 18:36:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-15T18:36:20Z</dc:date>
    <item>
      <title>tWriteJSONField please help building thos JSON , with array and subcategories</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-please-help-building-thos-JSON-with-array-and/m-p/2295544#M68309</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;We have this structure that we need to create in tWriteJsonField and we cannot get exact structure. I below Json we have an array . So,&lt;BR /&gt;Glass - is category of product there could be multiple categories . For each of this category we need to display Ship_To,ShipTo_Name.......Dec(UOM). All Values under glass category group by state.&lt;BR /&gt;So, for state PA in this example we have 3 customers we need to list values for each .&lt;BR /&gt;Important that at the end of each state report we need to sum all 3 customer (in this example) and show totals .&lt;/P&gt; 
&lt;P&gt;So my issue is building array and all brackets exactly as show in the example . Also how do we group like this? can anyone show how tWriteJsonField would look like to have this structure.&lt;/P&gt; 
&lt;P&gt;Another issue, i have actually json file with data in it (that was generated by other system sql server) i thought i could just import it to use that structure but talend does not let me import it.&lt;/P&gt; 
&lt;P&gt;Thank you in advance&lt;BR /&gt;JSON:&lt;BR /&gt;-----&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;{&lt;BR /&gt;"title": "Summary Report ",&lt;BR /&gt;"reportDate": "15/06/2018",&lt;BR /&gt;"Customer":"ALL",&lt;BR /&gt;"reportName": "Summary",&lt;BR /&gt;"duration": "3/15/2018",&lt;BR /&gt;"otherDetails": {&lt;BR /&gt;"Product_Category": "ALL",&lt;BR /&gt;"State(s)": "ALL",&lt;BR /&gt;"Ship_To_Account(s)": "ALL"&lt;BR /&gt;},&lt;BR /&gt;"datas": [&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;{&lt;BR /&gt;"Glas": [&lt;/P&gt; 
&lt;P&gt;{&lt;BR /&gt;"Ship_To": "9999998",&lt;BR /&gt;"ShipTo_Name": "HOME HOME",&lt;BR /&gt;"City": "Philly",&lt;BR /&gt;"State": "PA",&lt;BR /&gt;"Total MSF Shipped": 0.660,&lt;BR /&gt;"Jan(MSF)": 0.000,&lt;BR /&gt;"Feb(MSF)": 0.660,&lt;BR /&gt;"Mar(MSF)": 0.000,&lt;BR /&gt;"Apr(MSF)": 0.000,&lt;BR /&gt;"May(MSF)": 0.000 ,&lt;BR /&gt;"Jun(MSF)": 0.000 ,&lt;BR /&gt;"Jul(MSF)": 0.000 ,&lt;BR /&gt;"Aug(MSF)": 0.000,&lt;BR /&gt;"Sep(MSF)": 0.000,&lt;BR /&gt;"Oct(MSF)": 0.000 ,&lt;BR /&gt;"Nov(MSF)": 0.000,&lt;BR /&gt;"Dec(MSF)": 0.000&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"Ship_To": "7777",&lt;BR /&gt;"ShipTo_Name": "BLDG ",&lt;BR /&gt;"City": "Philly",&lt;BR /&gt;"State": "PA",&lt;BR /&gt;"Total MSF Shipped": 7.040,&lt;BR /&gt;"Jan(MSF)": 0.000,&lt;BR /&gt;"Feb(MSF)": 0.000,&lt;BR /&gt;"Mar(MSF)": 1.408,&lt;BR /&gt;"Apr(MSF)": 4.224,&lt;BR /&gt;"May(MSF)": 0.000 ,&lt;BR /&gt;"Jun(MSF)": 1.408 ,&lt;BR /&gt;"Jul(MSF)": 0.000 ,&lt;BR /&gt;"Aug(MSF)": 0.000,&lt;BR /&gt;"Sep(MSF)": 0.000,&lt;BR /&gt;"Oct(MSF)": 0.000 ,&lt;BR /&gt;"Nov(MSF)": 0.000,&lt;BR /&gt;"Dec(MSF)": 0.000&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"Ship_To": "2312312312",&lt;BR /&gt;"ShipTo_Name": "Nameof Ship to",&lt;BR /&gt;"City": "Philly",&lt;BR /&gt;"State": "PA",&lt;BR /&gt;"Total MSF Shipped": 5.632,&lt;BR /&gt;"Jan(MSF)": 0.000,&lt;BR /&gt;"Feb(MSF)": 2.816,&lt;BR /&gt;"Mar(MSF)": 0.000,&lt;BR /&gt;"Apr(MSF)": 1.408,&lt;BR /&gt;"May(MSF)": 1.408 ,&lt;BR /&gt;"Jun(MSF)": 0.000 ,&lt;BR /&gt;"Jul(MSF)": 0.000 ,&lt;BR /&gt;"Aug(MSF)": 0.000,&lt;BR /&gt;"Sep(MSF)": 0.000,&lt;BR /&gt;"Oct(MSF)": 0.000 ,&lt;BR /&gt;"Nov(MSF)": 0.000,&lt;BR /&gt;"Dec(MSF)": 0.000&lt;BR /&gt;}&lt;BR /&gt;,{&lt;BR /&gt;"Total for State BC":[13.332, 0.000,3.476, 1.408,5.632,&lt;BR /&gt;1.408,1.408, 0.000,0.000, 0.000,0.000, 0.000,&lt;BR /&gt;0.000]&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt; 
&lt;P&gt;},&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 18:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-please-help-building-thos-JSON-with-array-and/m-p/2295544#M68309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-15T18:36:20Z</dc:date>
    </item>
  </channel>
</rss>

