[android-components](../../index.md) / [mozilla.components.support.ktx.android.org.json](../index.md) / [kotlin.collections.Iterable](index.md) / [toJSONArray](./to-j-s-o-n-array.md)

# toJSONArray

`fun `[`Iterable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html)`<`[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`>.toJSONArray(): <ERROR CLASS>` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/ktx/src/main/java/mozilla/components/support/ktx/android/org/json/JSONArray.kt#L55)