<p dir="auto">Like this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { prefixes } from &quot;https://ip-ranges.amazonaws.com/ip-ranges.json&quot; assert {type: &quot;json&quot;}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">prefixes</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://ip-ranges.amazonaws.com/ip-ranges.json"</span> <span class="pl-s1">assert</span> <span class="pl-kos">{</span><span class="pl-s1">type</span>: "<span class="pl-s1">json</span>"<span class="pl-kos">}</span></pre></div>
<blockquote>
<p dir="auto">error: Uncaught SyntaxError: The requested module '<a href="https://ip-ranges.amazonaws.com/ip-ranges.json" rel="nofollow">https://ip-ranges.amazonaws.com/ip-ranges.json</a>' does not provide an export named 'prefixes'</p>
</blockquote>
<p dir="auto">But you can look <code class="notranslate">deno</code> hints for <code class="notranslate">deno</code> plugins. And in fact, this json has <code class="notranslate">prefixes</code> fields.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/82551626/243170252-c331a022-083b-42bf-a9a1-b81f76cb5fcb.png"><img src="https://user-images.githubusercontent.com/82551626/243170252-c331a022-083b-42bf-a9a1-b81f76cb5fcb.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This is my deno version</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno --version                                                                                                                                                                  ─╯
deno 1.34.1 (release, x86_64-unknown-linux-gnu)
v8 11.5.150.2
typescript 5.0.4"><pre class="notranslate"><code class="notranslate">deno --version                                                                                                                                                                  ─╯
deno 1.34.1 (release, x86_64-unknown-linux-gnu)
v8 11.5.150.2
typescript 5.0.4
</code></pre></div>
<p dir="auto">Hi, I'm really curious about this behavior; when importing a json in this way:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7959437/230442781-4ee63881-00ee-40ec-a3ba-fb6d39abb19f.png"><img src="https://user-images.githubusercontent.com/7959437/230442781-4ee63881-00ee-40ec-a3ba-fb6d39abb19f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Works good. However this way:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7959437/230442894-b29c02f4-b642-47c5-b9d6-fd235c088510.png"><img src="https://user-images.githubusercontent.com/7959437/230442894-b29c02f4-b642-47c5-b9d6-fd235c088510.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">It breaks.</p>
<p dir="auto">I'm not sure about the standard about this but if the latest is not supported, the Deno lsp should inform this is an error.</p>
<p dir="auto">Thanks.</p>