Method TryParse
TryParse(string, out BsonDocument)
Tries to parse a JSON string and returns a value indicating whether it succeeded or failed.
public static bool TryParse(string s, out BsonDocument result)
Parameters
sstringThe JSON string.
resultBsonDocumentThe result.
Returns
- bool
Whether it succeeded or failed.