<?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: read DataModelSchema.json into Python in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/read-DataModelSchema-json-into-Python/m-p/3928608#M52641</link>
    <description>&lt;P&gt;I know this topic is very old and outdated, but I just put the answer out there : this file is encoded in utf-16le&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2024 23:26:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-17T23:26:59Z</dc:date>
    <item>
      <title>read DataModelSchema.json into Python</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/read-DataModelSchema-json-into-Python/m-p/2101110#M32087</link>
      <description>&lt;P&gt;I downloaded a .pbix file and remamed it to .pbit so I could extract DataModelSchema.json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else had luck reading this .json into a python pandas dataframe? In this example, I changed the file name from DataModelSchema.json to datamodelschemasampledl.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a certain encoding I should use with the .json from Power Bi? Thanks in advance for any suggestions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import json
with open("C:\datamodelschemasampledl.json", "r") as f:
schema_data = json.load(f)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gives me the error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 19:26:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/read-DataModelSchema-json-into-Python/m-p/2101110#M32087</guid>
      <dc:creator>jch</dc:creator>
      <dc:date>2021-09-27T19:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: read DataModelSchema.json into Python</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/read-DataModelSchema-json-into-Python/m-p/2106873#M32152</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/305969"&gt;@jch&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;The 'DataModelSchema' file should be stored in the pbix file but you cannot directly extract it from pbix file. For this scenario, you can try to import some libraries about compression to analyze the file (pbix file can be recognized with compression software), then you can looping from the recognize folder/path to find out the corresponding contents. (notice: these operations may not directly execute in power bi desktop when you open the report, they may face the read/write protected/permission issues)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 01:41:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/read-DataModelSchema-json-into-Python/m-p/2106873#M32152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-30T01:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: read DataModelSchema.json into Python</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/read-DataModelSchema-json-into-Python/m-p/2631912#M37293</link>
      <description>&lt;P&gt;I'm having this same issue. Did you ever figure this out?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 18:40:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/read-DataModelSchema-json-into-Python/m-p/2631912#M37293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-11T18:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: read DataModelSchema.json into Python</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/read-DataModelSchema-json-into-Python/m-p/3928608#M52641</link>
      <description>&lt;P&gt;I know this topic is very old and outdated, but I just put the answer out there : this file is encoded in utf-16le&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 23:26:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/read-DataModelSchema-json-into-Python/m-p/3928608#M52641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-17T23:26:59Z</dc:date>
    </item>
  </channel>
</rss>

