/Knowledge/sources/honojs__hono/llms-full/pretty-json-middleware-usage--22b950ee8bfb.md
Pretty JSON Middleware: Usage - hono-docs
Pretty JSON Middleware: Usage Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt usage Summary Content Me...
Pretty JSON Middleware: Usage
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#usage
Summary
ts const app = new Hono() app.use(prettyJSON()) // With options: prettyJSON({ space: 4 }) app.get('/', (c) => { return c.json({ message: 'Hono!' }) })
Content
const app = new Hono()
app.use(prettyJSON()) // With options: prettyJSON({ space: 4 })
app.get('/', (c) => {
return c.json({ message: 'Hono!' })
})
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#usage",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Pretty JSON Middleware > Usage",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 221,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Pretty JSON Middleware: Usage",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}