-
- All Implemented Interfaces:
-
io.kjson.JSONStructure,io.kjson.JSONValue,kotlin.collections.Collection,kotlin.collections.Iterable,kotlin.collections.List
public final class JSONArray implements JSONStructure<Int>, List<JSONValue>
A JSON array. As allowed by the JSON specification, array members may be primitive types, objects, other arrays or
null.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classJSONArray.Companionpublic final classJSONArray.Builder
-
Method Summary
-
Methods inherited from class io.kjson.JSONStructure
getArray, getBoolean, getByte, getDecimal, getInt, getLong, getObject, getShort, getString, getUByte, getUInt, getULong, getUShort, isNotEmpty -
Methods inherited from class kotlin.collections.Iterable
forEach -
Methods inherited from class kotlin.collections.Collection
parallelStream, stream, toArray -
Methods inherited from class kotlin.collections.List
spliterator -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getAsArray
final JSONArray getAsArray()
-
getAsArrayOrNull
final JSONArray getAsArrayOrNull()
-
appendTo
Unit appendTo(Appendable a)
-
appendJSONLines
final Unit appendJSONLines(Appendable a)
-
toJSONLines
final String toJSONLines()
-
output
Unit output(IntConsumer out)
-
outputJSONLines
final Unit outputJSONLines(IntConsumer out)
-
coOutput
Unit coOutput(SuspendFunction1<Character, Unit> out)
-
coOutputJSONLines
final Unit coOutputJSONLines(SuspendFunction1<Character, Unit> out)
-
containsAll
Boolean containsAll(Collection<JSONValue> elements)
-
lastIndexOf
Integer lastIndexOf(JSONValue element)
-
listIterator
ListIterator<JSONValue> listIterator()
-
listIterator
ListIterator<JSONValue> listIterator(Integer index)
-
forEachItem
final Unit forEachItem(Function1<JSONValue, Unit> func)
-
forEachItemIndexed
final Unit forEachItemIndexed(Function2<Integer, JSONValue, Unit> func)
-
-
-
-