title: How do you get a JSON object from a string in nlohmann json?
body: <p>I have a string that I would like to parse into a json, but <code>_json</code> doesn't seem to work every time.</p>
  
  <pre><code>#include &lt;nlohmann/json.hpp&gt;
  #include &lt;iostream&gt;
  
  using nlohmann::json;
  
  int main()
  {
      // Works as expected
      json first = "[\"nlohmann\", \"json\"]"_json;
      // Doesn't work
      std::string s = "[\"nlohmann\", \"json\"]"_json;
      json second = s;
  }
  </code></pre>
  
  <p>The first part works, the second throws <code>terminate called after throwing an instance of 'nlohmann::detail::type_error'
    what():  [json.exception.type_error.302] type must be string, but is array</code>.</p>