<?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: JSON array structure to get the information in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/JSON-array-structure-to-get-the-information/m-p/2274297#M2959</link>
    <description>&lt;P&gt;Hi everybody,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Finally I solved the problem :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;- I used a tJavaRow and i added a code to get the label name, that is :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;//get the label name under JSON array model
output_row.json = output_row.json.replaceAll("(\"\\w+\")\\s*:[^:]+:\\s*\\\\\\\"(\\w+)\\\\\\\",\"","$1: \\[\"$2\"\\]");&lt;/PRE&gt; 
&lt;P&gt;As a result I get :&lt;/P&gt; 
&lt;PRE&gt;"labels": ["Webapp"],&lt;/PRE&gt; 
&lt;P&gt;&lt;A title="regex to get label name" href="https://regex101.com/r/UVqVYo/1" target="_self" rel="nofollow noopener noreferrer"&gt;https://regex101.com/r/UVqVYo/1&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2017 14:19:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-29T14:19:57Z</dc:date>
    <item>
      <title>JSON array structure to get the information</title>
      <link>https://community.qlik.com/t5/Data-Quality/JSON-array-structure-to-get-the-information/m-p/2274294#M2956</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like your opinion about this problem :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- I have these contents from a first job ( tOutputDelimited &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[{ ...
"labels": "[{\"idBoard\":\"57f269e64ebba4d3bfbc3fee\",\"color\":\"pink\",\"name\":\"Webapp\",\"uses\":53,\"id\":\"57f2721584e677fd36aa3646\"}]"
}]&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- from a second job, I get these contents (tInputDelimited) :&lt;/P&gt;
&lt;PRE&gt;...
},
		"labels": "\"label_name\": \"Webapp\","
	}&lt;/PRE&gt;
&lt;P&gt;I would like to recover all the information of "labels" of the first job under JSON array and specially delete&amp;nbsp; the "\" in order to have like a JSON array :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;["labels" : "blabla" ]&lt;/PRE&gt;
&lt;P&gt;What do you suggest to me to do this thing : TMap ( to clean the file ) or TJava to set the structure of the file ? Tell me...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 14:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/JSON-array-structure-to-get-the-information/m-p/2274294#M2956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-23T14:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: JSON array structure to get the information</title>
      <link>https://community.qlik.com/t5/Data-Quality/JSON-array-structure-to-get-the-information/m-p/2274295#M2957</link>
      <description>&lt;P&gt;Finally, I am working with "tJavaRow" componant.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 14:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/JSON-array-structure-to-get-the-information/m-p/2274295#M2957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-24T14:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: JSON array structure to get the information</title>
      <link>https://community.qlik.com/t5/Data-Quality/JSON-array-structure-to-get-the-information/m-p/2274296#M2958</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for your feedback and sharing your solution with us. Could you please set this topic as resolved?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 03:44:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/JSON-array-structure-to-get-the-information/m-p/2274296#M2958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-25T03:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: JSON array structure to get the information</title>
      <link>https://community.qlik.com/t5/Data-Quality/JSON-array-structure-to-get-the-information/m-p/2274297#M2959</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Finally I solved the problem :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;- I used a tJavaRow and i added a code to get the label name, that is :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;//get the label name under JSON array model
output_row.json = output_row.json.replaceAll("(\"\\w+\")\\s*:[^:]+:\\s*\\\\\\\"(\\w+)\\\\\\\",\"","$1: \\[\"$2\"\\]");&lt;/PRE&gt; 
&lt;P&gt;As a result I get :&lt;/P&gt; 
&lt;PRE&gt;"labels": ["Webapp"],&lt;/PRE&gt; 
&lt;P&gt;&lt;A title="regex to get label name" href="https://regex101.com/r/UVqVYo/1" target="_self" rel="nofollow noopener noreferrer"&gt;https://regex101.com/r/UVqVYo/1&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 14:19:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/JSON-array-structure-to-get-the-information/m-p/2274297#M2959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-29T14:19:57Z</dc:date>
    </item>
  </channel>
</rss>

