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

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

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

# Companion

[common]\
object [Companion](index.md)

## Functions

| Name | Summary |
|---|---|
| [create](create.md) | [common]<br>fun [create](create.md)(): [Table](../index.md)<br>An empty frame. |
| [csvToJsonArray](csvToJsonArray.md) | [common]<br>fun [csvToJsonArray](csvToJsonArray.md)(csvText: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)<br>CSV text (a header row plus rows) straight to a JSON array of objects, cells typed as the reader infers them. |
| [jsonArrayToCsv](jsonArrayToCsv.md) | [common]<br>fun [jsonArrayToCsv](jsonArrayToCsv.md)(jsonText: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)<br>A JSON array of objects straight to CSV text: the keys become columns in first-seen order, a missing key or a null is an empty cell. |
| [readCsv](readCsv.md) | [common]<br>fun [readCsv](readCsv.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), options: [CsvReadOptions](../../CsvReadOptions/index.md) = CsvReadOptions()): [Table](../index.md)<br>Read a CSV file into a frame; the column types are inferred. |
| [readCsvString](readCsvString.md) | [common]<br>fun [readCsvString](readCsvString.md)(text: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), options: [CsvReadOptions](../../CsvReadOptions/index.md) = CsvReadOptions()): [Table](../index.md)<br>Parse CSV text into a frame; malformed text fails typed. |