j2csv

Crates.ioj2csv
lib.rsj2csv
version0.1.0
sourcesrc
created_at2024-08-03 18:53:51.702235
updated_at2024-08-03 18:53:51.702235
descriptionConvert JSON to CSV
homepage
repository
max_upload_size
id1324497
size15,270
Tomek Strzeszkowski (tomekstrzeszkowski)

documentation

README

Run

cargo run -- '[{"a": 4, "b": 8}, {"a":9, "b": 10}]'
cargo run '''[{
        "name": "John Doe",
        "age": 43,
        "phones": [
            "+44 1234567",
            "+44 2345678"
        ],
        "ageX": 43
    }]'''
echo '''[{
        "name": "John Doe",
        "age": 43,
        "phones": [
            "+44 1234567",
            "+44 2345678"
        ],
        "ageX": 43
    }]''' | xargs -0 cargo run

VScode debugger

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lldb",
            "request": "launch",
            "name": "Debug executable 'json_to_csv'",
            "cargo": {
                "args": [
                    "build",
                    "--bin=json_to_csv",
                    "--package=json_to_csv"
                ],
                "filter": {
                    "name": "json_to_csv",
                    "kind": "bin"
                }
            },
            "args": ["[{\"a\": 4, \"b\": 8}, {\"a\":9, \"b\": 10}]"],
            "cwd": "${workspaceFolder}"
        }
    ]
}
Commit count: 0

cargo fmt