Skip to content

Complex data tabulation using the -s option #22

@PackeTsar

Description

@PackeTsar

Allow the input of JSONPath-like syntax to extract complex data for tabulation.

Example:

The meraki networks getNetworkClients command provides output like

    {
        "id": "xxxxxxxx",
        "mac": "xx:xx:xx:xx:xx:xx",
        "description": "SomeEndpoint",
        "usage": {
            "sent": 711311,
            "recv": 345962,
            "total": 1057274
        },
        "status": "Online",
        "notes": null,
        "groupPolicy8021x": null,
        "adaptivePolicyGroup": null,
        "smInstalled": false
    }

Normally, the usage data is squashed out of tabulation.

Allow the use of an option like -s "id,mac,usage.sent,usage.recv" with dot-separators to extract and tabulate the nested data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions