<?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 array in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Parse-JSON-array/m-p/213670#M9</link>
    <description>&lt;DIV class="p-rich_text_section"&gt;Hi all, is it possible in DQL to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;parse&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a JSON string that contains an array on the top level?&lt;BR /&gt;I can parse a top-level JSON object like&amp;nbsp;&lt;/DIV&gt;
&lt;PRE class="p-rich_text_section"&gt;data record(value = "{\"hello\" : \"world\"}")&lt;BR /&gt;| parse value, "JSON:json"&lt;/PRE&gt;
&lt;DIV class="p-rich_text_section"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefan_eggersto_0-1685541605234.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11992i90A064A79FE73AC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefan_eggersto_0-1685541605234.png" alt="stefan_eggersto_0-1685541605234.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I fail to parse a top-level JSON array:&lt;/P&gt;
&lt;PRE&gt;data record(value = "[{\"hello\" : \"world\"}]")&lt;BR /&gt;| parse value, "JSON:json"&lt;/PRE&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefan_eggersto_1-1685541634574.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11993i851341A1D5CE1290/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefan_eggersto_1-1685541634574.png" alt="stefan_eggersto_1-1685541634574.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Wed, 31 May 2023 14:00:58 GMT</pubDate>
    <dc:creator>stefan_eggersto</dc:creator>
    <dc:date>2023-05-31T14:00:58Z</dc:date>
    <item>
      <title>Parse JSON array</title>
      <link>https://community.dynatrace.com/t5/DQL/Parse-JSON-array/m-p/213670#M9</link>
      <description>&lt;DIV class="p-rich_text_section"&gt;Hi all, is it possible in DQL to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;parse&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a JSON string that contains an array on the top level?&lt;BR /&gt;I can parse a top-level JSON object like&amp;nbsp;&lt;/DIV&gt;
&lt;PRE class="p-rich_text_section"&gt;data record(value = "{\"hello\" : \"world\"}")&lt;BR /&gt;| parse value, "JSON:json"&lt;/PRE&gt;
&lt;DIV class="p-rich_text_section"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefan_eggersto_0-1685541605234.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11992i90A064A79FE73AC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefan_eggersto_0-1685541605234.png" alt="stefan_eggersto_0-1685541605234.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I fail to parse a top-level JSON array:&lt;/P&gt;
&lt;PRE&gt;data record(value = "[{\"hello\" : \"world\"}]")&lt;BR /&gt;| parse value, "JSON:json"&lt;/PRE&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefan_eggersto_1-1685541634574.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11993i851341A1D5CE1290/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefan_eggersto_1-1685541634574.png" alt="stefan_eggersto_1-1685541634574.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 May 2023 14:00:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parse-JSON-array/m-p/213670#M9</guid>
      <dc:creator>stefan_eggersto</dc:creator>
      <dc:date>2023-05-31T14:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Parse JSON array</title>
      <link>https://community.dynatrace.com/t5/DQL/Parse-JSON-array/m-p/213765#M23</link>
      <description>&lt;P&gt;Hi Stefan, you have to use &lt;A href="https://www.dynatrace.com/support/help/shortlink/dpl-json-arrays" target="_self"&gt;JSON_ARRAY&lt;/A&gt; for that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;data record(value = "[{\"hello\" : \"world\"}]")
| parse value, "JSON_ARRAY:greeting"
| fields greeting&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 11:08:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Parse-JSON-array/m-p/213765#M23</guid>
      <dc:creator>educampver</dc:creator>
      <dc:date>2023-06-01T11:08:32Z</dc:date>
    </item>
  </channel>
</rss>

