---
title: "json"
sidebar_label: "json"
description: "Kotlin binding reference: json."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../../index.md)/[io.clika.runtime](../../index.md)/[ServerResponse](../index.md)/[Companion](index.md)/[json](json.md)

# json

[common]\
fun [json](json.md)(body: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), status: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) = 200): [ServerResponse](../index.md)

An `application/json` response.