bson/src/main/org/bson/BsonDocument.java
public static BsonDocument parse(final String json) {
        return new BsonDocumentCodec().decode(new JsonReader(json), DecoderContext.builder().build());
    }
public static BsonDocument parse(final String json) {
        return new BsonDocumentCodec().decode(new JsonReader(json), DecoderContext.builder().build());
    }
Parses a string in MongoDB Extended JSON format to a {@code BsonDocument}

@param json the JSON string
@return a corresponding {@code BsonDocument} object
@see org.bson.json.JsonReader
@mongodb.driver.manual reference/mongodb-extended-json/ MongoDB Extended JSON