<?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 Parse json containing hashmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Parse-json-containing-hashmap/m-p/2269777#M47907</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to get key value pairs of hashmap in the data attribute in below json. Can I please know how to get the key value pairs ? I could not fetch them during metadata scanning for json input. I could easily get name and id. Please see attached snapshot. I need to fetch and parse hashmap present in data attribute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[
  {
    "name": "location",
    "id": 20,
    "data": {
      "2018-09-06T00:00:00": 36.0,
      "2018-09-06T00:10:00": 64.0,
      "2018-09-06T00:20:00": 88.0,
      "2018-09-06T00:30:00": 52.0,
      "2018-09-06T00:40:00": 10.0
    }
  }
]&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Sep 2018 17:35:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-07T17:35:49Z</dc:date>
    <item>
      <title>Parse json containing hashmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-json-containing-hashmap/m-p/2269777#M47907</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to get key value pairs of hashmap in the data attribute in below json. Can I please know how to get the key value pairs ? I could not fetch them during metadata scanning for json input. I could easily get name and id. Please see attached snapshot. I need to fetch and parse hashmap present in data attribute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[
  {
    "name": "location",
    "id": 20,
    "data": {
      "2018-09-06T00:00:00": 36.0,
      "2018-09-06T00:10:00": 64.0,
      "2018-09-06T00:20:00": 88.0,
      "2018-09-06T00:30:00": 52.0,
      "2018-09-06T00:40:00": 10.0
    }
  }
]&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 17:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-json-containing-hashmap/m-p/2269777#M47907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-07T17:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Parse json containing hashmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parse-json-containing-hashmap/m-p/2269778#M47908</link>
      <description>Dont bother trying those JSON components... maybe just for extracting the data object(s).&lt;BR /&gt;Go for regex and extract everything with "data" : {..... } and iterate over the results.&lt;BR /&gt;Next iterate over the key-values and do the conversion/mapping yourself.&lt;BR /&gt;Use a tJavaFlex , preCode, mainCode, postCode ...</description>
      <pubDate>Mon, 10 Sep 2018 14:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parse-json-containing-hashmap/m-p/2269778#M47908</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-09-10T14:22:18Z</dc:date>
    </item>
  </channel>
</rss>

