Skip to content

Add color-coding/syntax highlighting for JSON output in shell command results #79

@sajeetharan

Description

@sajeetharan

Problem

When executing shell commands that return JSON results, the output is displayed as plain text without any syntax highlighting or color-coding, making it difficult to read and parse complex nested JSON structures.

Solution

Implement syntax highlighting and color-coding for JSON results returned from shell commands. This should distinguish:

  • Keys vs. values
  • Data types (strings in one color, numbers in another, booleans/null in distinct colors)
  • Nested structures with clear visual hierarchy
  • Brackets, braces, and punctuation

Benefits

  • Improved readability of query results and command outputs
  • Faster visual parsing of complex nested JSON
  • Better developer experience
  • Standard practice in modern CLIs (like jq, Azure CLI, etc.)

Acceptance Criteria

  • JSON output displays with syntax highlighting
  • Color scheme is easy to read and distinguish
  • Works with deeply nested JSON structures
  • Output remains copy-paste friendly
  • Respects terminal color themes (light/dark)
  • No performance impact on command execution

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions