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

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

@since 3.4