Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

feat: add --json output flag to canister call#356

Draft
marc0olo wants to merge 4 commits intomain from
marc0olo/json-output-for-canister-calls
Draft

feat: add --json output flag to canister call #356
marc0olo wants to merge 4 commits intomain from
marc0olo/json-output-for-canister-calls

Conversation

@marc0olo
Copy link
Member

@marc0olo marc0olo commented Feb 12, 2026

Summary

  • Add --json flag to icp canister call that outputs the response as JSON instead of Candid text format, using the idl2json crate (same approach as dfx)
  • Consistent with the existing --json flag on canister status and network status
  • Addresses user request for JSON output to support scripting and automation workflows

@marc0olo marc0olo requested a review from a team as a code owner February 12, 2026 12:07
@marc0olo marc0olo marked this pull request as draft February 13, 2026 17:20
Copy link
Member Author

converted this into a draft because that might also be relevant for input formats and we can have different formats.

currently we always assume that Candid is returned.

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /