<?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: Formatting DQL Notebook Query into JSON for Dynatrace WebUI in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Formatting-DQL-Notebook-Query-into-JSON-for-Dynatrace-WebUI/m-p/263647#M1479</link>
    <description>&lt;P&gt;There are two ways you could tackle this issue:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. When you execute your DQL query, you can set the display options (Options -&amp;gt; Visualization) to "raw response". That will display the whole Grail response in JSON format. Scrolling down to the "metadata" object you will find your DQL query in the JSON payload (see metadata.grail.query)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tiit_Hallas_0-1732611580187.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24844i2AC5B84DB7B6E384/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tiit_Hallas_0-1732611580187.png" alt="Tiit_Hallas_0-1732611580187.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tiit_Hallas_1-1732611684579.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24845iB9F7BB6D8D9D87D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tiit_Hallas_1-1732611684579.png" alt="Tiit_Hallas_1-1732611684579.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Copy your DQL into any JSON converter (e.g.&amp;nbsp;&lt;A href="https://jsontostring.com/" target="_blank"&gt;https://jsontostring.com/&lt;/A&gt;) that will translate your payload to JSON-compatible string&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2024 09:06:25 GMT</pubDate>
    <dc:creator>Tiit_Hallas</dc:creator>
    <dc:date>2024-11-26T09:06:25Z</dc:date>
    <item>
      <title>Formatting DQL Notebook Query into JSON for Dynatrace WebUI</title>
      <link>https://community.dynatrace.com/t5/DQL/Formatting-DQL-Notebook-Query-into-JSON-for-Dynatrace-WebUI/m-p/263588#M1478</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I’m working with DQL in Dynatrace notebooks, and I need to format my query into a JSON payload for use in the Dynatrace WebUI. The challenge is that several characters—like double quotes ("), backslashes (\), and newlines (\n)—need to be escaped properly to make it valid JSON.&lt;/P&gt;&lt;P&gt;Is there a converter or tool available to automatically transform the DQL query (as written in a notebook) into the JSON-compatible format needed for WebUI queries?&lt;/P&gt;&lt;P&gt;If not, how do you typically handle this? I’m open to suggestions, such as scripts, tools, or best practices for efficiently managing this process.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 14:49:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Formatting-DQL-Notebook-Query-into-JSON-for-Dynatrace-WebUI/m-p/263588#M1478</guid>
      <dc:creator>Samaneh</dc:creator>
      <dc:date>2024-11-25T14:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting DQL Notebook Query into JSON for Dynatrace WebUI</title>
      <link>https://community.dynatrace.com/t5/DQL/Formatting-DQL-Notebook-Query-into-JSON-for-Dynatrace-WebUI/m-p/263647#M1479</link>
      <description>&lt;P&gt;There are two ways you could tackle this issue:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. When you execute your DQL query, you can set the display options (Options -&amp;gt; Visualization) to "raw response". That will display the whole Grail response in JSON format. Scrolling down to the "metadata" object you will find your DQL query in the JSON payload (see metadata.grail.query)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tiit_Hallas_0-1732611580187.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24844i2AC5B84DB7B6E384/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tiit_Hallas_0-1732611580187.png" alt="Tiit_Hallas_0-1732611580187.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tiit_Hallas_1-1732611684579.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24845iB9F7BB6D8D9D87D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tiit_Hallas_1-1732611684579.png" alt="Tiit_Hallas_1-1732611684579.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Copy your DQL into any JSON converter (e.g.&amp;nbsp;&lt;A href="https://jsontostring.com/" target="_blank"&gt;https://jsontostring.com/&lt;/A&gt;) that will translate your payload to JSON-compatible string&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 09:06:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Formatting-DQL-Notebook-Query-into-JSON-for-Dynatrace-WebUI/m-p/263647#M1479</guid>
      <dc:creator>Tiit_Hallas</dc:creator>
      <dc:date>2024-11-26T09:06:25Z</dc:date>
    </item>
  </channel>
</rss>

