Skip to content

Add a JSON output format #105

Description

@katarinasupe

--output-format accepts csv, tabular and cypherl. None of them are meant for a program to read.

CSV is the closest, and it emits values like:

"""vertex_count""","0"

Anything consuming that has to unwrap nested quoting correctly just to get a field name. Easy to get slightly wrong, and there is no signal when you do — you get a different string and carry on.

Why it matters now

A growing share of mgconsole callers are programs rather than people: scripts, CI jobs, and AI agents generating and running Cypher. For them the current formats are a parsing exercise with no error path. A wrong parse produces a wrong answer, not a failure.

It also costs. Agents re-read and re-parse output, so a format that needs interpretation burns tokens on every call — real spend for anyone running agents at scale.

What we would like

An output format a program can consume without interpretation.

Activity

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

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