Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend 'Raw JSON' report types to render processed json and YML trees #315

Closed
nielsdejong opened this issue Jan 23, 2023 · 2 comments
Closed

Comments

@nielsdejong
Copy link
Collaborator

nielsdejong commented Jan 23, 2023

Is your feature request related to a problem? Please describe.
Currently the Raw JSON report type returns the direct output from the Neo4j driver:

[
  {
    "keys": [
      "X",
      "Y"
    ],
    "length": 2,
    "_fields": [
      "A",
      {
        "low": 123,
        "high": 0
      }
    ],
    "_fieldLookup": {
      "X": 0,
      "Y": 1
    }
  }
]

It will be useful to also render a clean, processed JSON structure (with the _fields and _fieldLookup keys merged) to be more human-readable.

Describe the solution you'd like
For the example above, we can create an advanced report setting returnFormat with three settings ['raw', 'json', 'yml'] that determines the output.

Example for json for the data above:

{
  "X": "ABC",
  "Y": 123
}

Example for yml for the data above:

X: ABC
Y: 123
@nielsdejong
Copy link
Collaborator Author

Additional format suggestion: xml - rendering the processed JSON as an XML tree.

@BennuFire
Copy link
Collaborator

Closed with 2.2.4

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

No branches or pull requests

2 participants