Skip to content

Feature Request: Support Multiline / Pretty-Formatted Expressions #390

@hungtcs

Description

@hungtcs

Hi, thank you for the excellent work on gjson!

I'd like to request support for formatted (multiline) expressions.
Currently, expressions must be written on a single line, for example:

{name:name.last,age}

However, when an expression contains dozens or even hundreds of fields,
placing everything on a single line becomes extremely difficult to read and maintain.

It would be extremely helpful if gjson could support expressions formatted like:

{
  name:name.last,
  age,
}

This would greatly improve readability for complex queries and enable developers to structure large expressions in a cleaner, more maintainable way.

Thanks for considering this enhancement!

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