loading
loading
Utilities
Convert complex JSON data to an HTML table representation.
overview
json2html turns structured JSON into an HTML table so findings and inventories become readable in a browser or report without a front-end app.
Encode and attribute options control how values are escaped and how table markup is annotated.
Drop it at the end of a workflow when stakeholders want a simple HTML view of JSON results.
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 to turn structured JSON into a readable HTML table. It formats data, it does not scan or fetch, so feed it the output of a tool that emits JSON. For a generic report assembler, generate-yaml-report is a sibling utility.
Builds a report from workflow output too. json2html targets an HTML table from JSON specifically.
Flattens JSON into greppable lines. Use it to filter, json2html to present.
Transforms and queries JSON on the command line. Pair it before json2html to shape the data first.
faq
related
Import, export, and link workflow data with Airtable.
Decode Android APK files into smali sources and resources.
Check a file's values against conditions and exit with a matching code.
Extract all hosted zones from AWS Route53.
Output file lines by batch size, given START_LINE and END_LINE.
Extract a batch range from a file's lines or a folder's files, with parallel processing.
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.