addAll

open fun addAll(@NonNull collection: Collection<out Json>): Boolean

Add all objects from the specified collection at the end of the array.

All provided objects are cloned before adding.

Return

Whether at least one object was added.

Parameters

collection

The collection to add objects from.

Throws


open fun addAll(location: Int, @NonNull collection: Collection<out Json>): Boolean

Add all objects from the specified collection at the specified location.

All provided objects are cloned before adding.

Return

Whether at least one object was added.

Parameters

location

Location to add the JSON objects to.

collection

The collection to add objects from.

Throws