https://github.com/dfinity/idl2json
https://github.com/dfinity/idl2json
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/dfinity/idl2json
- Owner: dfinity
- License: apache-2.0
- Created: 2021-03-12T14:10:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-08-28T11:45:58.000Z (about 1 month ago)
- Last Synced: 2025-08-31T21:09:44.005Z (about 1 month ago)
- Language: Rust
- Size: 424 KB
- Stars: 8
- Watchers: 21
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-internet-computer - idl2json - Command line tool for converting Candid to JSON. (Candid / Libraries / Frameworks)
README
idl2json
========Reads [Candid](https://github.com/dfinity/candid) textual values from `stdin` and emits them as json values on `stdout`.
This command is useful for piping the output of Candid value producing tools (such as dfx) into json tools.
```
dfx canister call governance get_proposal_info 1 | idl2json
```There is sample output to play with without dfx:
```