bson/src/main/org/bson/Document.java
public static Document parse(final String json, final Decoder<Document> decoder) {
        notNull("codec", decoder);
        JsonReader bsonReader = new JsonReader(json);
        return decoder.decode(bsonReader, DecoderContext.builder().build());
    }
public static Document parse(final String json, final Decoder<Document> decoder) {
        notNull("codec", decoder);
        JsonReader bsonReader = new JsonReader(json);
        return decoder.decode(bsonReader, DecoderContext.builder().build());
    }
public static Document parse ( final String json , final Decoder < Document > decoder ) { notNull ( "codec" , decoder ) ; JsonReader bsonReader = new JsonReader ( json ) ; return decoder . decode ( bsonReader , DecoderContext . builder ( ) . build ( ) ) ; }
Parses a string in MongoDB Extended JSON format to a {@code Document}

@param json the JSON string
@param decoder the {@code Decoder} to use to parse the JSON string into a {@code Document}
@return a corresponding {@code Document} object
@see org.bson.json.JsonReader
@mongodb.driver.manual reference/mongodb-extended-json/ MongoDB Extended JSON
Parses a string in MongoDB Extended JSON format to a { @code Document }