Table of Contents

Method TryParse

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

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 string

The JSON string.

result BsonDocument

The result.

Returns

bool

Whether it succeeded or failed.