<?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 Validate JSON Object in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Validate-JSON-Object/m-p/2336359#M104815</link>
    <description>&lt;P&gt;I have the following JSON object coming from a web-service.&amp;nbsp;I need to perform some validations on the object before consuming it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;I need to ensure that it contains
  &lt;UL&gt;
   &lt;LI&gt;RESULT_1&lt;/LI&gt;
   &lt;LI&gt;RESULT_2&lt;/LI&gt;
   &lt;LI&gt;RESULT_15&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
 &lt;LI&gt;Set an exception/ warning if the data array is empty (like RESULT_15)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;What is the best way to achieve this? I could not find any validation information I can plug into tExtractJsonFields component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated. Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
	"RESULT_1": {
		"columns": ["col1", "col2", "col3", "col4"],
		"data": [
			["0", null, "12345", "other"],
			["1", "a", "54321", "MA"],
			["0", null, "76543", "RI"]
		]
	},
	"RESULT_2": {
		"columns": ["c1", "c2", "c3", "c4"],
		"data": [
			["", "", "1877", "9"],
			["NULL", "Yellow", "1983", "2"],
			["NULL", "Red", "1981", "0"]
		]
	},
	"RESULT_15": {
		"columns": ["c1", "c2", "c3", "c4"],
		"data": [
			
		]
	}
}&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Mar 2018 19:59:49 GMT</pubDate>
    <dc:creator>root</dc:creator>
    <dc:date>2018-03-27T19:59:49Z</dc:date>
    <item>
      <title>Validate JSON Object</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Validate-JSON-Object/m-p/2336359#M104815</link>
      <description>&lt;P&gt;I have the following JSON object coming from a web-service.&amp;nbsp;I need to perform some validations on the object before consuming it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;I need to ensure that it contains
  &lt;UL&gt;
   &lt;LI&gt;RESULT_1&lt;/LI&gt;
   &lt;LI&gt;RESULT_2&lt;/LI&gt;
   &lt;LI&gt;RESULT_15&lt;/LI&gt;
  &lt;/UL&gt;&lt;/LI&gt;
 &lt;LI&gt;Set an exception/ warning if the data array is empty (like RESULT_15)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;What is the best way to achieve this? I could not find any validation information I can plug into tExtractJsonFields component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is appreciated. Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
	"RESULT_1": {
		"columns": ["col1", "col2", "col3", "col4"],
		"data": [
			["0", null, "12345", "other"],
			["1", "a", "54321", "MA"],
			["0", null, "76543", "RI"]
		]
	},
	"RESULT_2": {
		"columns": ["c1", "c2", "c3", "c4"],
		"data": [
			["", "", "1877", "9"],
			["NULL", "Yellow", "1983", "2"],
			["NULL", "Red", "1981", "0"]
		]
	},
	"RESULT_15": {
		"columns": ["c1", "c2", "c3", "c4"],
		"data": [
			
		]
	}
}&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Mar 2018 19:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Validate-JSON-Object/m-p/2336359#M104815</guid>
      <dc:creator>root</dc:creator>
      <dc:date>2018-03-27T19:59:49Z</dc:date>
    </item>
  </channel>
</rss>

