You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default it seems that any JSON printed by hurl is not pretty-printed. Sometimes when I'm developing/debugging an API, I like to inspect the resulting JSON, which isn't doable in hurl without external tools.
This same feature request could also apply to HTML and XML, but at least for my use-case I am only asking for JSON. 😅
Proposal
Kind of similar to #1745, but I'd suggest either a CLI flag for this and/or a [Option] property to enable pretty printing for either an entire .hurl file or a single request.
Something like:
hurl test.hurl --pretty-print # or maybe something more descriptive and specific to JSON
and/or:
GET https://jsonplaceholder.typicode.com/users
[Option]
pretty-print: true # or maybe something more descriptive and specific to JSON
Problem to solve
By default it seems that any JSON printed by
hurl
is not pretty-printed. Sometimes when I'm developing/debugging an API, I like to inspect the resulting JSON, which isn't doable inhurl
without external tools.This same feature request could also apply to HTML and XML, but at least for my use-case I am only asking for JSON. 😅
Proposal
Kind of similar to #1745, but I'd suggest either a CLI flag for this and/or a
[Option]
property to enable pretty printing for either an entire.hurl
file or a single request.Something like:
and/or:
Additional context and resources
I currently pipe my
hurl
commands tojq
to get the pretty-printed version of the JSON: https://github.com/jqlang/jqHowever, this only works if I'm only printing a single response body; otherwise the printed output isn't valid JSON.
The text was updated successfully, but these errors were encountered: