title: How can I get the array length in nlohmann's json library?
body: <p>I am using nlohmann/json lib and want to get the length of a json array. Image i have:</p>
  
  <pre><code>[
  "test",
  "test2"
  ]
  </code></pre>
  
  <p>and want to recieve the length (2). When i tried the .length() method, it showed me this error:</p>
  
  <blockquote>
    <p>using json = using json = class nlohmann::basic_json&lt;>' {aka 'class nlohmann::basic_json&lt;>'} has no member named 'length</p>
  </blockquote>
  
  <p>so how can I get the length in this library?</p>