title: Insert JSON into Mongocxx
body: <p>I'm currently trying to insert a JSON file into my mongoDB. I've already seen that this was solved by making use of the mongo::BSONObj in the past... But this doesnt seem to be an option since they released the new mongocxx driver for c++11. This is what I found in the bsoncxx src files:</p>
  
  <pre><code>BSONCXX_API document::value BSONCXX_CALL from_json(stdx::string_view json);
  /// Constructs a new document::value from the provided JSON text
  ///
  /// @param 'json'
  ///  A string_view into a JSON document
  ///
  /// @returns A document::value if conversion worked.
  ///
  /// @throws bsoncxx::exception with error details if the conversion failed.
  ///
  </code></pre>
  
  <p>How do I get my JSON file into a <code>stdx::string_view</code>?</p>
  
  <p>Thanks!</p>