# JSON2CBOR
This repo contains two really simple programs to convert JSON to CBOR and vice versa. It does the transformation using [`serde-transcode`](https://github.com/sfackler/serde-transcode).
## Install
1. [Install Rust](https://rustup.rs/).
2. `cargo install json2cbor`.
## Use
`json2cbor` and `cbor2json` both take the same flags & arguments
### Reads/writes to stdin/stdout by default
```sh
```
### Read from an input file
```sh
json2cbor in.json
```
### Write to an output file
```sh
### Read & write to files
```sh
json2cbor -o out.cbor in.json
```
### Get help
```sh
json2cbor --help
```