public static JSONArray copyOf(Collection collection) {
        return new JSONArray(collection);
    }
Returns an {@link JSONArray} containing the elements of the given Collection, in its iteration order.

<pre>
JSONArray array = JSONArray.copyOf(List.of("fastjson"));
</pre>
@since 2.0.22
core/src/main/java/com/alibaba/fastjson2/JSONArray.java