<?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: How to handling &amp;quot;empty&amp;quot; string and replace them in jq in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-handling-quot-empty-quot-string-and-replace-them-in-jq/m-p/166248#M7375</link>
    <description>&lt;P&gt;As near as I can tell, this isn’t possible and you have to do something like:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/53135035/jq-returning-null-as-string-if-the-json-is-empty" target="_blank"&gt;https://stackoverflow.com/questions/53135035/jq-returning-null-as-string-if-the-json-is-empty&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2022 14:36:37 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2022-12-28T14:36:37Z</dc:date>
    <item>
      <title>How to handling "empty" string and replace them in jq</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-handling-quot-empty-quot-string-and-replace-them-in-jq/m-p/166053#M7370</link>
      <description>&lt;P&gt;Hi ALL,&lt;/P&gt;&lt;P&gt;I got a setback while I want to got a string form "where-used" output.&lt;BR /&gt;The where-used output form show as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1672035226974.jpg" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/18913iC85E7B67F531E33C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1672035226974.jpg" alt="1672035226974.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and I guess it the method to judgment whether "unused-object" or not.&lt;BR /&gt;The value of "Total"&lt;BR /&gt;=0 &amp;gt;&amp;gt; the target object is "unused object", all array is empty.&lt;BR /&gt;≠0 &amp;gt;&amp;gt; the target object is not "unused object", there is some objects information in array.&lt;BR /&gt;then if I interesting others string , just like "type" in object or "rule name" in access-control rules: rule,&lt;BR /&gt;I try the command below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11672039661093.jpg" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/18912iD236E621894C69E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="11672039661093.jpg" alt="11672039661093.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is it possible to return a word just like "null" if the array is empty ?&lt;/P&gt;&lt;P&gt;and how to do that in one command line.&lt;/P&gt;&lt;P&gt;Regards and thanks, vavava&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 08:09:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-handling-quot-empty-quot-string-and-replace-them-in-jq/m-p/166053#M7370</guid>
      <dc:creator>vavava</dc:creator>
      <dc:date>2022-12-26T08:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to handling "empty" string and replace them in jq</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-handling-quot-empty-quot-string-and-replace-them-in-jq/m-p/166213#M7371</link>
      <description>&lt;P&gt;What happens if you try using the same search in SmartConsole and not through API?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 08:27:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-handling-quot-empty-quot-string-and-replace-them-in-jq/m-p/166213#M7371</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2022-12-28T08:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to handling "empty" string and replace them in jq</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-handling-quot-empty-quot-string-and-replace-them-in-jq/m-p/166248#M7375</link>
      <description>&lt;P&gt;As near as I can tell, this isn’t possible and you have to do something like:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/53135035/jq-returning-null-as-string-if-the-json-is-empty" target="_blank"&gt;https://stackoverflow.com/questions/53135035/jq-returning-null-as-string-if-the-json-is-empty&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 14:36:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-handling-quot-empty-quot-string-and-replace-them-in-jq/m-p/166248#M7375</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-12-28T14:36:37Z</dc:date>
    </item>
  </channel>
</rss>

