driver-core/src/main/com/mongodb/BasicDBObject.java
public static BasicDBObject parse(final String json, final Decoder<BasicDBObject> decoder) {
        return decoder.decode(new JsonReader(json), DecoderContext.builder().build());
    }
public static BasicDBObject parse(final String json, final Decoder<BasicDBObject> decoder) {
        return decoder.decode(new JsonReader(json), DecoderContext.builder().build());
    }
Parses a string in MongoDB Extended JSON format to a {@code BasicDBObject}.

@param json the JSON string
@param decoder the decoder to use to decode the BasicDBObject instance
@return a corresponding {@code BasicDBObject} object
@see org.bson.json.JsonReader
@mongodb.driver.manual reference/mongodb-extended-json/ MongoDB Extended JSON