Skip to content

The CLI should return a JSON output rather than objects #2640

@bharatmicrosystems

Description

@bharatmicrosystems

Problem statement

Currently, when we hit an endpoint using the tool, complex types are displayed as maps or lists (based on what is returned), and when they are printed it is not parsable. I

For example, if the server returns {"foo": "bar"} the following output is displayed
map[foo:bar]

It is possible to add a command-line flag to change the outputs to custom formats such as JSON and/or YAML. The default output should ideally be tabular, but we can live with the current one if we have the JSON/YAML option in place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions