<?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 export not valid json in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Json-export-not-valid-json/m-p/201143#M8251</link>
    <description>&lt;P&gt;Can confirm, as of 2023: the JSON export is invalid insomuch, at the minimum, it is missing a root enclosing the subsequent JSON structures.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Formatted representation - missing primary root element" style="width: 115px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/23732i8504575371174426/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-12-19 at 16.58.45.png" alt="Screenshot 2023-12-19 at 16.58.45.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2023 22:06:43 GMT</pubDate>
    <dc:creator>WilltChambering</dc:creator>
    <dc:date>2023-12-19T22:06:43Z</dc:date>
    <item>
      <title>Json export not valid json</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Json-export-not-valid-json/m-p/119839#M5881</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I just exported my whole rule base using&amp;nbsp;&lt;SPAN&gt;sk120342 and&amp;nbsp;I am now trying to write a python script to parse through rules json file, but for some reason it keeps erroring out saying its not a&amp;nbsp;valid json file. I tried running this through a json validator and it keeps saying there are multiple root elements, so in&amp;nbsp;order to fix that&amp;nbsp;I just enclosed the entire thing into {json data} and that seemed to fix that issue. But now&amp;nbsp;I am running into another issue which is this&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;does&amp;nbsp;anyone know how to have that&amp;nbsp;export utility export in a valid json format? Or is there a way to fix this issue so&amp;nbsp;I can parse through this json file?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help is very much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 May 2021 18:08:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Json-export-not-valid-json/m-p/119839#M5881</guid>
      <dc:creator>bhaizlett123</dc:creator>
      <dc:date>2021-05-30T18:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Json export not valid json</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Json-export-not-valid-json/m-p/119841#M5882</link>
      <description>&lt;P&gt;To actually debug the issue, you’d have to provide the actual json file you got.&lt;BR /&gt;This might be better done as a TAC case.&lt;/P&gt;
&lt;P&gt;The other option would be to query the API directly which should return the results in JSON format.&lt;BR /&gt;However, depending on the size/number of policy layers in the relevant policy package, this may require multiple calls.&lt;/P&gt;</description>
      <pubDate>Sun, 30 May 2021 20:03:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Json-export-not-valid-json/m-p/119841#M5882</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-05-30T20:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Json export not valid json</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Json-export-not-valid-json/m-p/120176#M5885</link>
      <description>&lt;P&gt;A sample output would be really useful to help troubleshoot this (just make sure you've removed anything. It sounds familiar and I'm wondering if the output actually contains multiple JSON structures in a single file which is why the JSON validator tools are showing multiple roots.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 09:23:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Json-export-not-valid-json/m-p/120176#M5885</guid>
      <dc:creator>StuartGreen</dc:creator>
      <dc:date>2021-06-02T09:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Json export not valid json</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Json-export-not-valid-json/m-p/120211#M5887</link>
      <description>&lt;P&gt;Given that it likely requires multiple API calls to generate said file, it wouldn’t surprise me if that file had…multiple JSON structures in it.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 15:41:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Json-export-not-valid-json/m-p/120211#M5887</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-06-02T15:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Json export not valid json</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Json-export-not-valid-json/m-p/201143#M8251</link>
      <description>&lt;P&gt;Can confirm, as of 2023: the JSON export is invalid insomuch, at the minimum, it is missing a root enclosing the subsequent JSON structures.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Formatted representation - missing primary root element" style="width: 115px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/23732i8504575371174426/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-12-19 at 16.58.45.png" alt="Screenshot 2023-12-19 at 16.58.45.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 22:06:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Json-export-not-valid-json/m-p/201143#M8251</guid>
      <dc:creator>WilltChambering</dc:creator>
      <dc:date>2023-12-19T22:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Json export not valid json</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Json-export-not-valid-json/m-p/201180#M8255</link>
      <description>&lt;P&gt;Have you tried running the JSON through a validator or through JQ? Having a root element as a list ( [] ) is valid JSON as far as I can tell (backed up here too&amp;nbsp;&lt;A href="https://www.json.org/json-en.html" target="_blank"&gt;https://www.json.org/json-en.html&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 11:19:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Json-export-not-valid-json/m-p/201180#M8255</guid>
      <dc:creator>StuartGreen</dc:creator>
      <dc:date>2023-12-20T11:19:10Z</dc:date>
    </item>
  </channel>
</rss>

