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
s
stringThe JSON string.
result
BsonDocumentThe result.
Returns
- bool
Whether it succeeded or failed.