kotlinx-serialization / kotlinx.serialization.json / JsonArray / <init>

<init>

(common, js, jvm, native) <init>(content: List<JsonElement>)(common, js, native)

Class representing JSON array, consisting of indexed values, where value is arbitrary JsonElement

Since this class also implements List interface, you can use traditional methods like List.get or List.getOrNull to obtain Json elements.

(jvm)

Class representing JSON array, consisting of indexed values, where value is arbitrary JsonElement

Since this class also implements List interface, you can use traditional methods like List.get or List.getOrNull to obtain Json elements.