loading
loading
Utilities
Convert JSON into an HTML table for readable reports.
overview
json2html reads a --json file and emits an HTML table so scanner or prober results are readable in a browser without a front-end app.
Enable --encode when values contain escaped markup that should render as text. Pass --attributes such as id or class so the table picks up your stylesheet.
Trickest provides json2html as a managed Utilities node at the report stage. JSON file in, FILE and FOLDER out. Shape rows with jq first; prefer generate-yaml-report for a generic report assembler.
source github.com/softvar/json2html
use cases
Convert the JSON output of a scanner into an HTML table so the results read as a browsable report instead of raw records.
Drop json2html at the end of a workflow so structured output from httpx or nuclei becomes a shareable HTML artifact automatically.
Pass table attributes such as an id and class so the generated table picks up your stylesheet for a cleaner presentation.
Enable HTML encoding so escaped markup inside the JSON renders as text in the table rather than breaking the page.
reference
| Name | Type | Flag | Description |
|---|---|---|---|
| json | FILE | --json | JSON input file |
| encode | BOOLEAN | --encode | Encode escaped html code |
| attributes | STRING | --attributes | List of space-separated table attributes to apply to the generated table (example: 'id=foo class=bar') |
Showing key inputs. json2html exposes 3 inputs in total.
example
# json2html: render findings.json as an HTML tablejson2html --json findings.json > report.html<table><tr><th>host</th><th>status</th></tr><tr><td>www.example.com</td><td>200</td></tr><tr><td>api.example.com</td><td>401</td></tr><tr><td>dev.example.com</td><td>200</td></tr></table>guidance
Use json2html at the reporting end of a workflow when you need a browsable HTML table from structured JSON. It formats data; it does not scan or fetch. Prefer generate-yaml-report for a generic report assembler, or jq when you still need to reshape the data.
Builds a report from workflow output. json2html targets an HTML table from JSON specifically.
Flattens JSON into greppable lines. Use gron to filter, json2html to present.
Transforms and queries JSON. Pair it before json2html to shape the data first.
faq
related
Spider a URL and return a wordlist for password crackers.
Wordlist and mined-word subdomain permutation.
Import, export, and upsert workflow data against an Airtable base.
Decode Android APK files into smali sources and resources.
Check a file's values against conditions and exit with a matching code.
Authenticated Route53 hosted-zone inventory.
A JSON findings file feeds json2html, which renders it as an HTML table and writes the report file for sharing.
Facts on this page come from the live Trickest tool library.