<?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>article Parsing: Flat JSON - Field Value Pairs in Member Articles</title>
    <link>https://community.qlik.com/t5/Member-Articles/Parsing-Flat-JSON-Field-Value-Pairs/ta-p/2535096</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="FlagJSONIMage.png" style="width: 241px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184657iB90603F887DE94FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlagJSONIMage.png" alt="FlagJSONIMage.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The image depicts the simplest of JSON structures, a flat list of field and value pairs. Your eyes can easily parse the data, so within a second if I asked you what the &lt;STRONG&gt;&lt;FONT color="#993300"&gt;outlaw's name&lt;/FONT&gt;&lt;/STRONG&gt; was, you would respond with "&lt;STRONG&gt;&lt;FONT color="#993300"&gt;Billy the Byte&lt;/FONT&gt;&lt;/STRONG&gt;." Because instinctively, and without instruction from me, you determined that "outlaw_name" and "Billy the Byte" went together as a &lt;STRONG&gt;&lt;FONT color="#993300"&gt;PAIR&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;/P&gt;
&lt;H2&gt;JsonGet()&lt;/H2&gt;
&lt;P&gt;Qlik Sense provides a very easy to understand function called &lt;A href="https://help.qlik.com/en-US/sense/May2025/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/JsonGet.htm" target="_blank" rel="noopener"&gt;JsonGet&lt;/A&gt; that does exactly the same thing that your eyes did. You simply hand it the JSON Block your JSON is in, and tell it the field name you want to parse out of the structure, and it "&lt;STRONG&gt;&lt;FONT color="#993300"&gt;gets&lt;/FONT&gt;&lt;/STRONG&gt;" the value that is paired with the field name you gave it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's &lt;FONT color="#993300"&gt;&lt;STRONG&gt;assume&lt;/STRONG&gt; &lt;/FONT&gt;that the JSON structure is loaded into a field called JSON_Block in a table called Flat,&amp;nbsp; the following code would parse this unstructured textual JSON block into structural field values that you can utilize like you do any of the other 93,302,203 disparate sources you utilize in Qlik Sense every day.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ParseFlatPairs.png" style="width: 491px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184658iFBB33F4D2EF667EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="ParseFlatPairs.png" alt="ParseFlatPairs.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H2&gt;Practice&lt;/H2&gt;
&lt;P&gt;If you are anything like me you don't like to assume anything, and you are a visual or experiential learner. So, go ahead and download the attached &lt;STRONG&gt;&lt;FONT color="#993300"&gt;WildDataFrontier.qvf&lt;/FONT&gt;&lt;/STRONG&gt; that is attached, upload it to your environment and open the load script.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Section1.png" style="width: 209px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184659iE64D76FD0F8C8B0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Section1.png" alt="Section1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;{ Notice there are multiple sections. Each of them will pertain to a separate article and for this article the section named "&lt;STRONG&gt;&lt;FONT color="#993300"&gt;1 - Flat JSON: Key-Value Pairs&lt;/FONT&gt;&lt;/STRONG&gt;" is the one you want to have at the top of your script. }&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PrettySection1.png" style="width: 888px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184660iA80D24E5327AED02/image-size/large?v=v2&amp;amp;px=999" role="button" title="PrettySection1.png" alt="PrettySection1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Each section will begin with a common pattern. I will show you the prettified version of the JSON structure. Meaning it's indented, and thus easy to read. Then I will remove the line feeds so that the JSON structure being covered is a single line that we deal with as a single string for transformation within Qlik Sense. That single text/block is what API's will return or what you will read out of textual fields that contain JSON blocks from RDMBS systems.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your learning, simply modify any/all of the field names, modify the &lt;STRONG&gt;&lt;FONT color="#993300"&gt;JsonGet&lt;/FONT&gt; &lt;/STRONG&gt;transformations and then load the data.&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Preview&lt;/H2&gt;
&lt;P&gt;As you go through your changes, the easiest thing to do is visualize the Preview at the bottom of the load editor.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That way you can see what the flat JSON structure/text block looks like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PreviewFlatBlock.png" style="width: 652px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184661iCDF8EE1BBE33B185/image-size/large?v=v2&amp;amp;px=999" role="button" title="PreviewFlatBlock.png" alt="PreviewFlatBlock.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As well as seeing how the Information is parsed with that simple JsonGet statement:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PreviewInformation.png" style="width: 639px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184662i9B61892DD6D64A82/image-size/large?v=v2&amp;amp;px=999" role="button" title="PreviewInformation.png" alt="PreviewInformation.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H2 id="toc-hId-1628650518"&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;Big Picture&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/H2&gt;
&lt;P&gt;This post is part of a series aimed at ensuring you have the tools needed to Tame with Wild West Data Frontier, I mean Tame the Wild JSON Data Frontier you may be facing.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Posts:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://%20https/community.qlik.com/t5/Member-Articles/Parsing-Flat-JSON-Field-Value-Pairs/ta-p/2535096" target="_blank" rel="nofollow noopener noreferrer" aria-describedby="audioeye_new_window_message"&gt;Taming the Wild JSON Data Frontier&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://%20https/community.qlik.com/t5/Member-Articles/Parsing-Flat-JSON-Field-Value-Pairs/ta-p/2535096" target="_blank" rel="nofollow noopener noreferrer" aria-describedby="audioeye_new_window_message"&gt;&lt;STRONG&gt;Parsing: Flat JSON - Field Value Pairs&amp;nbsp;&amp;lt;--- You are here&lt;/STRONG&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Parsing-Nested-JSON-Objects/ta-p/2535112" target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;Parsing: Nested JSON Objects&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Parsing-JSON-Array-Homogeneous-Objects/ta-p/2535153" target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;Parsing: JSON Array (Homogeneous Objects)&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Parsing-Heterogeneous-Mixed-JSON-Objects-Fixed-Manner/ta-p/2535212" target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;Parsing: Heterogeneous (Mixed) JSON Objects Fixed Manner&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Parsing-Heterogeneous-Mixed-JSON-Objects-Flexible-Manner/ta-p/2535225" target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;Parsing: Heterogeneous (Mixed) JSON Objects Flexible Manner&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Parsing-Heterogeneous-Mixed-JSON-Arrays/ta-p/2535281" target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;Parsing: Heterogeneous (Mixed) JSON Arrays&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Nov 2025 17:40:14 GMT</pubDate>
    <dc:creator>Dalton_Ruer</dc:creator>
    <dc:date>2025-11-04T17:40:14Z</dc:date>
    <item>
      <title>Parsing: Flat JSON - Field Value Pairs</title>
      <link>https://community.qlik.com/t5/Member-Articles/Parsing-Flat-JSON-Field-Value-Pairs/ta-p/2535096</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="FlagJSONIMage.png" style="width: 241px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184657iB90603F887DE94FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlagJSONIMage.png" alt="FlagJSONIMage.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The image depicts the simplest of JSON structures, a flat list of field and value pairs. Your eyes can easily parse the data, so within a second if I asked you what the &lt;STRONG&gt;&lt;FONT color="#993300"&gt;outlaw's name&lt;/FONT&gt;&lt;/STRONG&gt; was, you would respond with "&lt;STRONG&gt;&lt;FONT color="#993300"&gt;Billy the Byte&lt;/FONT&gt;&lt;/STRONG&gt;." Because instinctively, and without instruction from me, you determined that "outlaw_name" and "Billy the Byte" went together as a &lt;STRONG&gt;&lt;FONT color="#993300"&gt;PAIR&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;/P&gt;
&lt;H2&gt;JsonGet()&lt;/H2&gt;
&lt;P&gt;Qlik Sense provides a very easy to understand function called &lt;A href="https://help.qlik.com/en-US/sense/May2025/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/JsonGet.htm" target="_blank" rel="noopener"&gt;JsonGet&lt;/A&gt; that does exactly the same thing that your eyes did. You simply hand it the JSON Block your JSON is in, and tell it the field name you want to parse out of the structure, and it "&lt;STRONG&gt;&lt;FONT color="#993300"&gt;gets&lt;/FONT&gt;&lt;/STRONG&gt;" the value that is paired with the field name you gave it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's &lt;FONT color="#993300"&gt;&lt;STRONG&gt;assume&lt;/STRONG&gt; &lt;/FONT&gt;that the JSON structure is loaded into a field called JSON_Block in a table called Flat,&amp;nbsp; the following code would parse this unstructured textual JSON block into structural field values that you can utilize like you do any of the other 93,302,203 disparate sources you utilize in Qlik Sense every day.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ParseFlatPairs.png" style="width: 491px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184658iFBB33F4D2EF667EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="ParseFlatPairs.png" alt="ParseFlatPairs.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H2&gt;Practice&lt;/H2&gt;
&lt;P&gt;If you are anything like me you don't like to assume anything, and you are a visual or experiential learner. So, go ahead and download the attached &lt;STRONG&gt;&lt;FONT color="#993300"&gt;WildDataFrontier.qvf&lt;/FONT&gt;&lt;/STRONG&gt; that is attached, upload it to your environment and open the load script.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Section1.png" style="width: 209px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184659iE64D76FD0F8C8B0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Section1.png" alt="Section1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;{ Notice there are multiple sections. Each of them will pertain to a separate article and for this article the section named "&lt;STRONG&gt;&lt;FONT color="#993300"&gt;1 - Flat JSON: Key-Value Pairs&lt;/FONT&gt;&lt;/STRONG&gt;" is the one you want to have at the top of your script. }&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PrettySection1.png" style="width: 888px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184660iA80D24E5327AED02/image-size/large?v=v2&amp;amp;px=999" role="button" title="PrettySection1.png" alt="PrettySection1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Each section will begin with a common pattern. I will show you the prettified version of the JSON structure. Meaning it's indented, and thus easy to read. Then I will remove the line feeds so that the JSON structure being covered is a single line that we deal with as a single string for transformation within Qlik Sense. That single text/block is what API's will return or what you will read out of textual fields that contain JSON blocks from RDMBS systems.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your learning, simply modify any/all of the field names, modify the &lt;STRONG&gt;&lt;FONT color="#993300"&gt;JsonGet&lt;/FONT&gt; &lt;/STRONG&gt;transformations and then load the data.&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Preview&lt;/H2&gt;
&lt;P&gt;As you go through your changes, the easiest thing to do is visualize the Preview at the bottom of the load editor.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That way you can see what the flat JSON structure/text block looks like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PreviewFlatBlock.png" style="width: 652px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184661iCDF8EE1BBE33B185/image-size/large?v=v2&amp;amp;px=999" role="button" title="PreviewFlatBlock.png" alt="PreviewFlatBlock.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As well as seeing how the Information is parsed with that simple JsonGet statement:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PreviewInformation.png" style="width: 639px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184662i9B61892DD6D64A82/image-size/large?v=v2&amp;amp;px=999" role="button" title="PreviewInformation.png" alt="PreviewInformation.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H2 id="toc-hId-1628650518"&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;Big Picture&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/H2&gt;
&lt;P&gt;This post is part of a series aimed at ensuring you have the tools needed to Tame with Wild West Data Frontier, I mean Tame the Wild JSON Data Frontier you may be facing.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Posts:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://%20https/community.qlik.com/t5/Member-Articles/Parsing-Flat-JSON-Field-Value-Pairs/ta-p/2535096" target="_blank" rel="nofollow noopener noreferrer" aria-describedby="audioeye_new_window_message"&gt;Taming the Wild JSON Data Frontier&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://%20https/community.qlik.com/t5/Member-Articles/Parsing-Flat-JSON-Field-Value-Pairs/ta-p/2535096" target="_blank" rel="nofollow noopener noreferrer" aria-describedby="audioeye_new_window_message"&gt;&lt;STRONG&gt;Parsing: Flat JSON - Field Value Pairs&amp;nbsp;&amp;lt;--- You are here&lt;/STRONG&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Parsing-Nested-JSON-Objects/ta-p/2535112" target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;Parsing: Nested JSON Objects&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Parsing-JSON-Array-Homogeneous-Objects/ta-p/2535153" target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;Parsing: JSON Array (Homogeneous Objects)&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Parsing-Heterogeneous-Mixed-JSON-Objects-Fixed-Manner/ta-p/2535212" target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;Parsing: Heterogeneous (Mixed) JSON Objects Fixed Manner&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Parsing-Heterogeneous-Mixed-JSON-Objects-Flexible-Manner/ta-p/2535225" target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;Parsing: Heterogeneous (Mixed) JSON Objects Flexible Manner&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Parsing-Heterogeneous-Mixed-JSON-Arrays/ta-p/2535281" target="_blank" rel="noopener" aria-describedby="audioeye_new_window_message"&gt;Parsing: Heterogeneous (Mixed) JSON Arrays&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2025 17:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Parsing-Flat-JSON-Field-Value-Pairs/ta-p/2535096</guid>
      <dc:creator>Dalton_Ruer</dc:creator>
      <dc:date>2025-11-04T17:40:14Z</dc:date>
    </item>
  </channel>
</rss>

