All right, then: This one is complete (compiles, runs, iterates through the data, accessing only fields &quot;x&quot; and &quot;y&quot;):<p><pre><code>  #include &lt;fstream&gt;
  #include &lt;json.hpp&gt;
  
  int main()
  {
  	std::ifstream input_file(&quot;data.json&quot;);
  	nlohmann::json data;
  	data &lt;&lt; input_file;
  	for (auto obj : data)
  		std::cout &lt;&lt; obj[&quot;x&quot;] &lt;&lt; &#x27;,&#x27; &lt;&lt; obj[&quot;y&quot;] &lt;&lt; &#x27;\n&#x27;;
  }</code></pre>