/Knowledge/sources/honojs__hono/llms-full/getting-started-return-json--2eb97bef6b2b.md
Getting Started: Return JSON - hono-docs
Getting Started: Return JSON Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt return json Summary Retur...
Getting Started: Return JSON
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#return-json
Summary
Returning JSON is also easy. The following is an example of handling a GET Request to /api/hello and returning an application/json Response. ```ts app.get('/api/hello', (c) => { return c.json({ ok: true, message: 'Hello Hono!', }) })...
Content
Returning JSON is also easy. The following is an example of handling a GET Request to /api/hello and returning an application/json Response.
app.get('/api/hello', (c) => {
return c.json({
ok: true,
message: 'Hello Hono!',
})
})
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#return-json",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Getting Started > Return JSON",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 518,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Getting Started: Return JSON",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}