title: nlohmann's json library convert an array to a vector of structs
body: <p>Say I have a json array that looks like this:</p>
  
  <pre><code>[
    {
      "Name": "test",
      "Val": "test_val"
    },
    {
      "Name": "test2",
      "Val": "test_val2"
    }
  ]
  </code></pre>
  
  <p>I want to convert this into a vector of structs:</p>
  
  <pre><code>struct Test {
    string Name;
    string Val;
  };
  </code></pre>
  
  <p>I know about the <code>json.get&lt;&gt;()</code> method, but do not know how to apply that to this.</p>