Crates.io | json2cbor |
lib.rs | json2cbor |
version | 2.0.0 |
source | src |
created_at | 2019-12-04 20:39:10.062133 |
updated_at | 2022-09-08 17:08:52.776255 |
description | Convert JSON to CBOR |
homepage | |
repository | https://github.com/Timmmm/json2cbor |
max_upload_size | |
id | 186535 |
size | 12,637 |
This repo contains two really simple programs to convert JSON to CBOR and vice versa. It does the transformation using serde-transcode
.
cargo install json2cbor
.json2cbor
and cbor2json
both take the same flags & arguments
echo '{"foo":"bar"}' | json2cbor | cbor2json
# Output: {"foo":"bar"}
json2cbor in.json
echo '{"foo":"bar"}' | json2cbor -o out.cbor
json2cbor -o out.cbor in.json
json2cbor --help