<?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: REST connection to specific JSON structure (Open TSDB) in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319032#M2765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you guys ever solve this problem? I'm running into the same thing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2017 22:51:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-28T22:51:41Z</dc:date>
    <item>
      <title>REST connection to specific JSON structure (Open TSDB)</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319027#M2760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello comunity,&lt;/P&gt;&lt;P&gt;I need to connect to Open TSDB (special timeseries database working with Hadoop - &lt;A href="http://opentsdb.net/" title="http://opentsdb.net/"&gt;OpenTSDB - A Distributed, Scalable Monitoring System&lt;/A&gt;) using its api (&lt;A href="http://opentsdb.net/docs/build/html/api_http/index.html" title="http://opentsdb.net/docs/build/html/api_http/index.html"&gt;HTTP API — OpenTSDB 2.3 documentation&lt;/A&gt;). Unfortunately i get JSON response in folowing format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[{"metric":"volt_l3","tags":{"device":"dev4tech2_sm5"},"aggregateTags":[],"dps":{"1501452319":230.60000610351562,"1501452349":230.6999969482422,"1501452379":230.6999969482422,"1501452409":230.6999969482422,...,"1501492010":227.10000610351562}}]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it is interpreted by Qlik Sense as :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;..."dps":{"1501452319":230.60000610351562,...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Times New Roman',serif;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Times New Roman',serif;"&gt;..."table name”:{„field name“ : value,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but it should be something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Times New Roman',serif;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Times New Roman',serif;"&gt;..."table name”:{"&lt;EM&gt;field named Time&lt;/EM&gt; &lt;STRONG&gt;value&lt;/STRONG&gt;" : &lt;EM&gt;metric&lt;/EM&gt; &lt;STRONG&gt;value&lt;/STRONG&gt;,...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I connect data I get a thousands of fields with one value. Output is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LIB CONNECT TO 'test';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RestConnectorMasterTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL SELECT &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "__KEY_root",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "1501192815",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...(thousands of other fields)...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "1501245766",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "__FK_dps"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM "dps" FK "__FK_dps")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM JSON (wrap on) "root" PK "__KEY_root";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;The main issue is that there are new records in database (time and some value) ~every 10 seconds and with this output I am not able to load them withouth complete changing of load script. Do you have any sugestions how to handle this? How to force Qlik to read data in a required way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;&lt;SPAN style="color: #000000;"&gt;Thank you in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000;"&gt;I am using Qlik Sense June 2017 and its REST connector&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 09:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319027#M2760</guid>
      <dc:creator>DavidŠtorek</dc:creator>
      <dc:date>2017-07-31T09:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: REST connection to specific JSON structure (Open TSDB)</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319028#M2761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have same issue. &lt;SPAN style="font-size: 13.3333px;"&gt;Could&lt;/SPAN&gt; &lt;A href="https://community.qlik.com/qlik-users/77808"&gt;mto&lt;/A&gt;‌‌‌ help us?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 07:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319028#M2761</guid>
      <dc:creator>gladi-cz</dc:creator>
      <dc:date>2017-08-02T07:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: REST connection to specific JSON structure (Open TSDB)</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319029#M2762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys - thanks for the notification - I have added &lt;A href="https://community.qlik.com/qlik-users/78905"&gt;daz&lt;/A&gt;‌ on this thread - he may be able to provide some more insight.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 14:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319029#M2762</guid>
      <dc:creator>Michael_Tarallo</dc:creator>
      <dc:date>2017-08-02T14:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: REST connection to specific JSON structure (Open TSDB)</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319030#M2763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/77808"&gt;mto&lt;/A&gt;‌ &amp;amp; &lt;A href="https://community.qlik.com/qlik-users/78905"&gt;daz&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Do you have any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replay,&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 11:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319030#M2763</guid>
      <dc:creator>gladi-cz</dc:creator>
      <dc:date>2017-08-09T11:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: REST connection to specific JSON structure (Open TSDB)</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319031#M2764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Petr - let me directly follow up with him.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 14:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319031#M2764</guid>
      <dc:creator>Michael_Tarallo</dc:creator>
      <dc:date>2017-08-09T14:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: REST connection to specific JSON structure (Open TSDB)</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319032#M2765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you guys ever solve this problem? I'm running into the same thing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 22:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319032#M2765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-28T22:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: REST connection to specific JSON structure (Open TSDB)</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319033#M2766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in meantime i found kind of work around. Just add to url address to the end ...&lt;STRONG&gt;&amp;amp;arrays=true&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The result will be that you get output formated as array of arrays ant than it is a little bit better for data load.&lt;/P&gt;&lt;P&gt;Documented on &lt;A href="http://opentsdb.net/docs/build/html/api_http/serializers/json.html" title="http://opentsdb.net/docs/build/html/api_http/serializers/json.html"&gt;JSON Serializer — OpenTSDB 2.3 documentation&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 13:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319033#M2766</guid>
      <dc:creator>DavidŠtorek</dc:creator>
      <dc:date>2018-02-08T13:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: REST connection to specific JSON structure (Open TSDB)</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319034#M2767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ended up using this too! Thanks for the tip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 17:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-to-specific-JSON-structure-Open-TSDB/m-p/1319034#M2767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-08T17:16:00Z</dc:date>
    </item>
  </channel>
</rss>

