<?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: Parsing nested json array in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Parsing-nested-json-array/m-p/2375179#M137650</link>
    <description>Looks like you have changed/updated the json content when compared to the original post. The logic still remains same - just replace it with the correct tag names.
&lt;BR /&gt;
&lt;BR /&gt;------------------------------------------------------------ Please mark the post as accepted if it had helped you, kudos are also welcome.</description>
    <pubDate>Tue, 31 Jul 2018 16:05:19 GMT</pubDate>
    <dc:creator>iamabhishek</dc:creator>
    <dc:date>2018-07-31T16:05:19Z</dc:date>
    <item>
      <title>Parsing nested json array</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-nested-json-array/m-p/2375177#M137648</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to parse json in below format and write it into csv.&amp;nbsp;&lt;/P&gt;&lt;P&gt;[{&lt;BR /&gt;"_id": "1",&lt;BR /&gt;"eventHistory": [{&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;event&lt;/SPAN&gt;Type": "Pen",&lt;BR /&gt;"&lt;SPAN&gt;recieved&lt;/SPAN&gt;Date": {&lt;BR /&gt;"$date": "2018-07-10"&lt;BR /&gt;}&lt;BR /&gt;}, {&lt;BR /&gt;"&lt;SPAN&gt;event&lt;/SPAN&gt;Type": "Rec",&lt;BR /&gt;"&lt;SPAN&gt;recieved&lt;/SPAN&gt;Date": {&lt;BR /&gt;"$date": "2018-07-10"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;]&lt;BR /&gt;}, {&lt;BR /&gt;"_id": "2",&lt;BR /&gt;"&lt;SPAN&gt;event&lt;/SPAN&gt;History": [{&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;event&lt;/SPAN&gt;Type": "Pend",&lt;BR /&gt;"&lt;SPAN&gt;recieved&lt;/SPAN&gt;Date": {&lt;BR /&gt;"$date": "2018-07-10"&lt;BR /&gt;}&lt;BR /&gt;}, {&lt;BR /&gt;"&lt;SPAN&gt;event&lt;/SPAN&gt;Type": "Rec",&lt;BR /&gt;"&lt;SPAN&gt;recieved&lt;/SPAN&gt;Date": {&lt;BR /&gt;"$date": "2018-07-10"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output iam looking for is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;event&lt;/SPAN&gt;Type&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;recieved&lt;/SPAN&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Pen&lt;/TD&gt;&lt;TD&gt;2018-07-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Rec&lt;/TD&gt;&lt;TD&gt;2018-07-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Pen&lt;/TD&gt;&lt;TD&gt;2018-07-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Rec&lt;/TD&gt;&lt;TD&gt;2018-07-10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vin&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-nested-json-array/m-p/2375177#M137648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing nested json array</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-nested-json-array/m-p/2375178#M137649</link>
      <description>&lt;P&gt;You could achieve this by using tFileInputJSON and tExtractJSONFields to extract the json data.&lt;/P&gt; 
&lt;P&gt;Job Layout -&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tExtractJSONField-3.JPG" style="width: 392px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lymf.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156783i0DC8A8D09AFE5266/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lymf.jpg" alt="0683p000009Lymf.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;The tFileInputJSON is just used to get the Id and the Loop is set to the first array of "eventHistory" and the Mappings simply get the "eventType" and the&amp;nbsp;"receivedDate".&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tFileInputJSON-2.JPG" style="width: 657px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz1F.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134545i8D92D3BFA8B66C05/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz1F.jpg" alt="0683p000009Lz1F.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;The Loop is just over the array. In the Mapping the "Id" field is just a pass-through. Leave it blank.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tExtractJSONField-4.JPG" style="width: 662px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz1K.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147066i672DCE0C8961D454/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz1K.jpg" alt="0683p000009Lz1K.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 10:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-nested-json-array/m-p/2375178#M137649</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-07-31T10:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing nested json array</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-nested-json-array/m-p/2375179#M137650</link>
      <description>Looks like you have changed/updated the json content when compared to the original post. The logic still remains same - just replace it with the correct tag names.
&lt;BR /&gt;
&lt;BR /&gt;------------------------------------------------------------ Please mark the post as accepted if it had helped you, kudos are also welcome.</description>
      <pubDate>Tue, 31 Jul 2018 16:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-nested-json-array/m-p/2375179#M137650</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2018-07-31T16:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing nested json array</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-nested-json-array/m-p/2375180#M137651</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I have a similar problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need to create the following csv starting from the json below&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="expected result" style="width: 829px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaHf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139401i0E3D2D932FEC1720/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaHf.png" alt="0683p000009MaHf.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;expected result&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;{
	"data": [{
			"id": 1,
			"data": {
				"Tid": 1,
				"derived.security.Coupon.notional": 10,
				"derived.security.Coupon.paymentAmount": {
					"rows": [{
							"paymentAmount": 1,
							"periodNum": 1
						}, {
							"paymentAmount": 2,
							"periodNum": 2
						}
					]
				},
				"derived.security.Coupon.paymentRate": {
					"rows": [{
							"paymentRate": 0.5,
							"periodNum": 1
						}, {
							"paymentRate": 0.25,
							"periodNum": 2
						}
					]
				},
				"derived.security.Coupon.schedule.scheduleType": "A",
				"derived.security.Coupon.schedule": {
					"rows": [{
							"accrualEndDate": "31/12/2021",
							"periodNum": 1
						}, {
							"accrualEndDate": "31/12/2022",
							"periodNum": 2
						}
					]
				},
				"security": {
					"rows": [{
							"name": "APPLE"
						}, {
							"name": "PINTEREST"
						}, {
							"name": "GOOGLE"
						}
					]
				}
			}
		}, {
			"id": 3,
			"data": {
				"Tid": 3,
				"derived.security.Coupon.notional": 40,
				"derived.security.Coupon.paymentRate": {
					"rows": [{
							"paymentRate": 2,
							"periodNum": 1
						}, {
							"paymentRate": 1.5,
							"periodNum": 2
						}
					]
				},
				"derived.security.Coupon.schedule.scheduleType": "C",
				"derived.security.Coupon.schedule": {
					"rows": [{
							"accrualEndDate": "31/03/2021",
							"periodNum": 1
						}, {
							"accrualEndDate": "31/03/2022",
							"periodNum": 2
						}
					]
				}
			}
		}, {
			"id": 4,
			"data": {
				"Tid": 4,
				"derived.security.Coupon.notional": 20,
				"derived.security.Coupon.paymentAmount": {
					"rows": [{
							"paymentAmount": 2,
							"periodNum": 1
						}, {
							"paymentAmount": 4,
							"periodNum": 2
						}
					]
				},
				"derived.security.Coupon.paymentRate": {
					"rows": [{
							"paymentRate": 2,
							"periodNum": 1
						}, {
							"paymentRate": 1.5,
							"periodNum": 2
						}
					]
				},
				"derived.security.Coupon.schedule.scheduleType": "D"
			}
		}
	]
}&lt;/PRE&gt; 
&lt;P&gt;Could you please help me?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 20:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-nested-json-array/m-p/2375180#M137651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-01T20:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing nested json array</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-nested-json-array/m-p/2375181#M137652</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I have a similar problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need to create the following csv starting from the json below&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="expected result" style="width: 829px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaHf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139401i0E3D2D932FEC1720/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaHf.png" alt="0683p000009MaHf.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;expected result&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;{
	"data": [{
			"id": 1,
			"data": {
				"Tid": 1,
				"derived.security.Coupon.notional": 10,
				"derived.security.Coupon.paymentAmount": {
					"rows": [{
							"paymentAmount": 1,
							"periodNum": 1
						}, {
							"paymentAmount": 2,
							"periodNum": 2
						}
					]
				},
				"derived.security.Coupon.paymentRate": {
					"rows": [{
							"paymentRate": 0.5,
							"periodNum": 1
						}, {
							"paymentRate": 0.25,
							"periodNum": 2
						}
					]
				},
				"derived.security.Coupon.schedule.scheduleType": "A",
				"derived.security.Coupon.schedule": {
					"rows": [{
							"accrualEndDate": "31/12/2021",
							"periodNum": 1
						}, {
							"accrualEndDate": "31/12/2022",
							"periodNum": 2
						}
					]
				},
				"security": {
					"rows": [{
							"name": "APPLE"
						}, {
							"name": "PINTEREST"
						}, {
							"name": "GOOGLE"
						}
					]
				}
			}
		}, {
			"id": 3,
			"data": {
				"Tid": 3,
				"derived.security.Coupon.notional": 40,
				"derived.security.Coupon.paymentRate": {
					"rows": [{
							"paymentRate": 2,
							"periodNum": 1
						}, {
							"paymentRate": 1.5,
							"periodNum": 2
						}
					]
				},
				"derived.security.Coupon.schedule.scheduleType": "C",
				"derived.security.Coupon.schedule": {
					"rows": [{
							"accrualEndDate": "31/03/2021",
							"periodNum": 1
						}, {
							"accrualEndDate": "31/03/2022",
							"periodNum": 2
						}
					]
				}
			}
		}, {
			"id": 4,
			"data": {
				"Tid": 4,
				"derived.security.Coupon.notional": 20,
				"derived.security.Coupon.paymentAmount": {
					"rows": [{
							"paymentAmount": 2,
							"periodNum": 1
						}, {
							"paymentAmount": 4,
							"periodNum": 2
						}
					]
				},
				"derived.security.Coupon.paymentRate": {
					"rows": [{
							"paymentRate": 2,
							"periodNum": 1
						}, {
							"paymentRate": 1.5,
							"periodNum": 2
						}
					]
				},
				"derived.security.Coupon.schedule.scheduleType": "D"
			}
		}
	]
}&lt;/PRE&gt; 
&lt;P&gt;Could you please help me?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 20:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-nested-json-array/m-p/2375181#M137652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-01T20:53:19Z</dc:date>
    </item>
  </channel>
</rss>

