<?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 PowerQuery Extension API: Web.Contents parsing binary as JSON in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerQuery-Extension-API-Web-Contents-parsing-binary-as-JSON/m-p/633068#M18648</link>
    <description>&lt;P&gt;I'm using the PowerQuery Extension API (NOT Power BI Desktop) and I have the following function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;shared PQDeiworld.Contents = (url as text, DEINSP as text) =&amp;gt;
    let
		DEIPass = Extension.CurrentCredential()[Key],
        query = [
			DEINSP = DEINSP,
			FlagIdiomas = 1,
			DEIPass = DEIPass
		], 
		answer = Text.FromBinary(Web.Contents(url, [Query = query]))
    in
        answer;&lt;/PRE&gt;&lt;P&gt;The response to this from the (internal) web server is a slightly malformed XML Document, that I know how to clean up in PBI Dekstop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to run the extension in Visual Studio, I get the following response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unexpected Exception&lt;/P&gt;&lt;P&gt;Details:&lt;/P&gt;&lt;P&gt;[DataFormat.Error] We found extra characters at the end of the JSON Input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not telling Web.Contents to parse JSON, I want to get the binary out, and parse it myself - how do I stop Web.Contents from doing so?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Feb 2019 12:17:42 GMT</pubDate>
    <dc:creator>Moof</dc:creator>
    <dc:date>2019-02-27T12:17:42Z</dc:date>
    <item>
      <title>PowerQuery Extension API: Web.Contents parsing binary as JSON</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerQuery-Extension-API-Web-Contents-parsing-binary-as-JSON/m-p/633068#M18648</link>
      <description>&lt;P&gt;I'm using the PowerQuery Extension API (NOT Power BI Desktop) and I have the following function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;shared PQDeiworld.Contents = (url as text, DEINSP as text) =&amp;gt;
    let
		DEIPass = Extension.CurrentCredential()[Key],
        query = [
			DEINSP = DEINSP,
			FlagIdiomas = 1,
			DEIPass = DEIPass
		], 
		answer = Text.FromBinary(Web.Contents(url, [Query = query]))
    in
        answer;&lt;/PRE&gt;&lt;P&gt;The response to this from the (internal) web server is a slightly malformed XML Document, that I know how to clean up in PBI Dekstop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to run the extension in Visual Studio, I get the following response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unexpected Exception&lt;/P&gt;&lt;P&gt;Details:&lt;/P&gt;&lt;P&gt;[DataFormat.Error] We found extra characters at the end of the JSON Input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not telling Web.Contents to parse JSON, I want to get the binary out, and parse it myself - how do I stop Web.Contents from doing so?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 12:17:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerQuery-Extension-API-Web-Contents-parsing-binary-as-JSON/m-p/633068#M18648</guid>
      <dc:creator>Moof</dc:creator>
      <dc:date>2019-02-27T12:17:42Z</dc:date>
    </item>
  </channel>
</rss>

