Move.

Post

Share your knowledge.

DRAMA.
Jan 28, 2025
Expert Q&A

How to get JSON output from a CLI tool for parsing?

I'm working with a standard CLI tool, but the output contains many boxes and lines, making it hard to parse for the results I care about. Is there an official way to get a JSON output or something similar that I can easily parse?

  • Move CLI
2
1
Share
Comments
.

Answers

1
doodee.
Jan 29 2025, 03:21

You can use the --json option if available. It returns command outputs in JSON format that are easier to parse.

2
Comments
.

Do you know the answer?

Please log in and share it.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Posts231Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Reward CampaignJune
We use cookies to ensure you get the best experience on our website.
More info