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
{{ message }}
Repository navigation
Add -output-json-schema flag for displaying full json schema #2432
When using -json flag, until the tool is run, output json structure is unknown. Further, many fields in output are optional, and cannot be known beforehand. These fields only show up with certain hosts/input, which makes it difficult to parse result.
Describe the use case of this feature:
When someone wants to parse the json, all the fields and their types are unknown. Using -output-json-schema allows user to view full json schema. This json schema is standard, and can be used by devs to write the types in their own languages/runtimes.
For the devs, we have examples documented here https://github.com/projectdiscovery/httpx/tree/dev/examples and they can also see the output scheme easily by navigating the code. Maybe documenting this more explicitly would help instead of introducing new CLI option. What do you think?
Activity
dogancanbakir commentedon Mar 4, 2026
For the devs, we have examples documented here https://github.com/projectdiscovery/httpx/tree/dev/examples and they can also see the output scheme easily by navigating the code. Maybe documenting this more explicitly would help instead of introducing new CLI option. What do you think?