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

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

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Json](index.md)/[asString](asString.md)

# asString

[common]\
fun [asString](asString.md)(): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)

The value as a string; another kind fails with `INVALID_ARGUMENT`.