<?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 Parsing JSON Question in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Parsing-JSON-Question/m-p/2236456#M25163</link>
    <description>&lt;P&gt;I have the following json response:&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"2019-06-01":["recs": 1, "vals": 2],&lt;BR /&gt;"2019-06-02":["recs": 1, "vals": 2]&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the result:&lt;/P&gt;
&lt;P&gt;2019-06-01, 1, 2&lt;BR /&gt;2019-06-02, 1, 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the JSONPath I have&amp;nbsp;"$.[*]"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I can get back the values 1,2, but I don't know how to get the date first?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know it must be something stupid easy, but I've tried all sorts of combinations of things and still can't seem to get it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Frank&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 05:14:29 GMT</pubDate>
    <dc:creator>fjblau</dc:creator>
    <dc:date>2024-11-16T05:14:29Z</dc:date>
    <item>
      <title>Parsing JSON Question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-JSON-Question/m-p/2236456#M25163</link>
      <description>&lt;P&gt;I have the following json response:&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"2019-06-01":["recs": 1, "vals": 2],&lt;BR /&gt;"2019-06-02":["recs": 1, "vals": 2]&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the result:&lt;/P&gt;
&lt;P&gt;2019-06-01, 1, 2&lt;BR /&gt;2019-06-02, 1, 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the JSONPath I have&amp;nbsp;"$.[*]"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I can get back the values 1,2, but I don't know how to get the date first?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know it must be something stupid easy, but I've tried all sorts of combinations of things and still can't seem to get it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-JSON-Question/m-p/2236456#M25163</guid>
      <dc:creator>fjblau</dc:creator>
      <dc:date>2024-11-16T05:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing JSON Question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-JSON-Question/m-p/2236457#M25164</link>
      <description>&lt;P&gt;It look's like the correct version of your json should be :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
"2019-06-01":{"recs": 1, "vrec": 2},
"2019-06-02":{"recs": 1, "vals": 2}
}&lt;/PRE&gt;&lt;P&gt;Another issue is that,&amp;nbsp;"2019-06-01" and&amp;nbsp;"2019-06-02" are like column names, not values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your expected result may require something like :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
	"root":[
		{"date":"2019-06-01","recs": 1, "vals": 2},
	      {"date":"2019-06-02","recs": 1, "vals": 2}
	     ]
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 16:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-JSON-Question/m-p/2236457#M25164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-18T16:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing JSON Question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-JSON-Question/m-p/2236458#M25165</link>
      <description>&lt;P&gt;Yah, it's not my API so I don't have any control over it... I can get one day record at a time though, so I guess the best thing is to loop through the days I want data for and pass it as a context variable or something.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 06:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-JSON-Question/m-p/2236458#M25165</guid>
      <dc:creator>fjblau</dc:creator>
      <dc:date>2019-07-19T06:40:53Z</dc:date>
    </item>
  </channel>
</rss>

