Skip to content

Add -output-json-schema flag for displaying full json schema #2432

Closed

Description

@divyeshio

Please describe your feature request:

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.

Activity

  1. dogancanbakir commented on Mar 4, 2026

    @dogancanbakir
    Member

    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?

  2. locked and limited conversation to collaborators on Mar 5, 2026
  3. converted this issue into a discussion #2436 on Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: EnhancementMost issues will probably ask for additions or changes.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions