Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI support for encoding/importing from JSON #222

Open
1 task done
chenliu0831 opened this issue Mar 1, 2024 · 2 comments
Open
1 task done

CLI support for encoding/importing from JSON #222

chenliu0831 opened this issue Mar 1, 2024 · 2 comments

Comments

@chenliu0831
Copy link

Things to check first

  • I have searched the existing issues and didn't find my feature already requested there

Feature description

Currently the CLI tool only supports converting CBOR data to representation that allows printing as JSON. The reverse serialization / importing is also a common task.

Happy to contribute as well.

Use case

It's convenient for manual testing with human readable JSON files/payload. Supported in this Rust project as well https://github.com/TakenPilot/cbor-cli.

Examples:

cbor2 -o test.cbor test.json --format=json

@chenliu0831
Copy link
Author

@agronholm gentle ping, any thoughts on the feature and interface?

@agronholm
Copy link
Owner

I might be open to that, but would require a PR with tests, any necessary docs updates and a changelog entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants