<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<pre>Andrea Giudiceandrea wrote
><i> <a href="https://leafletjs.com/examples/choropleth/us-states.js">https://leafletjs.com/examples/choropleth/us-states.js</a>
</i>
> Just download it, edit the file with a text editor and remove the string
> "var statesData = " at the beginning and the semi colon ";" at the end, and
> then you will be able to import and visualise it in QGIS.
I believe the geojson spec also requires an newline after the closing bracket. The .js just reaches EOF which is an error, at least in the on-line validator.
In simpler words - your file must end with a blank line.
</pre>
</body>
</html>