gjson icon indicating copy to clipboard operation
gjson copied to clipboard

Feature Request: Support Multiline / Pretty-Formatted Expressions

Open hungtcs opened this issue 3 weeks ago • 0 comments

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!

hungtcs avatar Dec 05 '25 06:12 hungtcs