You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: json.rs
    path of file: ./repos/polars/docs/src/rust/user-guide/io
    
    the code of the file until where you have to start completion: use polars::prelude::*;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    // --8<-- [start:read]
    use polars::prelude::*;

    let mut file = std::fs::File::open("docs/data/path.json").unwrap();
    let df = JsonReader::new(&mut file).finish().unwrap();
    // --8<-- [end:read]
    println!("{}", df);

    // --8<-- [start:readnd]
    let mut file = std::fs::File::open("docs/data/path.json").unwrap();
    let df = JsonLineReader::new(&mut file).finish().unwrap();
    // --8<-- [end:readnd]
    println!("{}", df);

   
    
fn main() -> Result<(), Box<dyn std::error::Error>> {
    // --8<-- [start:read]
    use polars::prelude::*;

    let mut file = std::fs::File::open("docs/data/path.json").unwrap();
    let df = JsonReader::new(&mut file).finish().unwrap();
    // --8<-- [end:read]
    println!("{}", df);

    // --8<-- [start:readnd]
    let mut file = std::fs::File::open("docs/data/path.json").unwrap();
    let df = JsonLineReader::new(&mut file).finish().unwrap();
    // --8<-- [end:readnd]
    println!("{}", df);

    // --8<-- [start:write]
    let mut df = df!(
        "foo" => &[1, 2, 3],
        "bar" => &[None, Some("bak"), Some("baz")],
    )
    .unwrap();

    let mut file = std::fs::File::create("docs/data/path.json").unwrap();

    // json
    JsonWriter::new(&mut file)
        .with_json_format(JsonFormat::Json)
        .finish(&mut df)
        .unwrap();

    // ndjson
    JsonWriter::new(&mut file)
        .with_json_format(JsonFormat::JsonLines)
        .finish(&mut df)
        .unwrap();
    // --8<-- [end:write]

    // --8<-- [start:scan]
    let lf = LazyJsonLineReader::new("docs/data/path.json")
        .finish()
        .unwrap();
    // --8<-- [end:scan]
    println!("{}", lf.collect()?);

    Ok(())
}