title: how to assign a javascript variable with ndjson value
body: <p>I want to assign the data inside a ndjson file into a js variable. I have tried putting it in an array and an object but that is throwing me error. </p>
  
  <p>I have tried like this ... </p>
  
  <pre><code>var data = [{"attributes":{}}
  {"attributes":{}}
  {"attributes":{}}]
  
  </code></pre>
  
  <p>and </p>
  
  <pre><code>var data = {{"attributes":{}}
  {"attributes":{}}
  {"attributes":{}}}
  </code></pre>
  
  <p>But this is not working. </p>
  
  <p>Can someone help me on how to assign this ndjson value to a js variable without throwing error. </p>