## Uses of Class
org.apache.tapestry5.json.JSONArray

- Packages that use JSONArray
  Package | Description
  --- | ---
  org.apache.tapestry5.internal.json | [INTERNAL USE ONLY] support classes for the JSON module; API subject to change
  org.apache.tapestry5.internal.services | [INTERNAL USE ONLY] internal service classes; API subject to change
  org.apache.tapestry5.internal.services.ajax | [INTERNAL USE ONLY] AJAX support services; API subject to change
  org.apache.tapestry5.json | Repackaged, improved (and tested) version of code originally https://github.com/tdunning/open-json Starting in release 5.4, `JSONObject` and `JSONArray` are serializable.
  org.apache.tapestry5.services.javascript | Support for Javascript (and CSS), including dynamically-added JavaScript and services that manage dynamically-added links to JavaScript (and CSS) assets.

- - ### Uses of JSONArray in org.apache.tapestry5.internal.json

    Methods in org.apache.tapestry5.internal.json that return JSONArray
    Modifier and Type | Method | Description
    --- | --- | ---
    `JSONArray` | StringToJSONArray.`coerce​(String input)` |

  - ### Uses of JSONArray in org.apache.tapestry5.internal.services

    Methods in org.apache.tapestry5.internal.services with parameters of type JSONArray
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | DocumentLinker.`addInitialization​(InitializationPriority priority, String moduleName, String functionName, JSONArray arguments)` | Adds initialization, based on invoking functions exported by JavaScript modules.
    `void` | DocumentLinkerImpl.`addInitialization​(InitializationPriority priority, String moduleName, String functionName, JSONArray arguments)` |
    `void` | ModuleInitsManager.`addInitialization​(InitializationPriority priority, String moduleName, String functionName, JSONArray arguments)` |
    `void` | PartialMarkupDocumentLinker.`addInitialization​(InitializationPriority priority, String moduleName, String functionName, JSONArray arguments)` |
    `void` | JSONArrayEventResultProcessor.`processResultValue​(JSONArray value)` |

  - ### Uses of JSONArray in org.apache.tapestry5.internal.services.ajax

    Methods in org.apache.tapestry5.internal.services.ajax with parameters of type JSONArray
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | JavaScriptSupportImpl.`addInitializerCall​(String functionName, JSONArray parameter)` |
    `void` | JavaScriptSupportImpl.`addInitializerCall​(InitializationPriority priority, String functionName, JSONArray parameter)` |

  - ### Uses of JSONArray in org.apache.tapestry5.json

    Methods in org.apache.tapestry5.json that return JSONArray
    Modifier and Type | Method | Description
    --- | --- | ---
    `static JSONArray` | JSONArray.`from​(Iterable<?> iterable)` | Create a new array, and adds all values from the iterable to the array (using `putAll(Iterable)`.
    `JSONArray` | JSONArray.`getJSONArray​(int index)` | Returns the value at `index` if it exists and is a `JSONArray`.
    `JSONArray` | JSONObject.`getJSONArray​(String name)` | Returns the value mapped by `name` if it exists and is a `JSONArray`, or throws otherwise.
    `JSONArray` | JSONObject.`getJSONArrayOrDefault​(String name, JSONArray defaultValue)` | Returns the value to which the specified key is mapped and a JSONArray, or `defaultValue` if this JSONObject contains no mapping for the key.
    `JSONArray` | JSONObject.`names()` | Returns an array containing the string names in this object.
    `JSONArray` | JSONArray.`put​(int index, Object value)` | Sets the value at `index` to `value`, null padding this array to the required length if necessary.
    `JSONArray` | JSONArray.`put​(Object value)` | Deprecated. The use of `add(Object)` is encouraged.
    `JSONArray` | JSONArray.`putAll​(Iterable<?> collection)` | Puts all objects from the collection into this JSONArray, using `put(Object)`.

    Methods in org.apache.tapestry5.json that return types with arguments of type JSONArray
    Modifier and Type | Method | Description
    --- | --- | ---
    `static <T> Collector<T,​?,​JSONArray>` | JSONCollectors.`toArray()` | Returns a `Collector` that accumulates the input elements into a new `JSONArray`.

    Methods in org.apache.tapestry5.json with parameters of type JSONArray
    Modifier and Type | Method | Description
    --- | --- | ---
    `JSONArray` | JSONObject.`getJSONArrayOrDefault​(String name, JSONArray defaultValue)` | Returns the value to which the specified key is mapped and a JSONArray, or `defaultValue` if this JSONObject contains no mapping for the key.

  - ### Uses of JSONArray in org.apache.tapestry5.services.javascript

    Methods in org.apache.tapestry5.services.javascript with parameters of type JSONArray
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | JavaScriptSupport.`addInitializerCall​(String functionName, JSONArray parameter)` | Deprecated. Deprecated in 5.4; refactor to use JavaScript modules instead
    `void` | JavaScriptSupport.`addInitializerCall​(InitializationPriority priority, String functionName, JSONArray parameter)` | Deprecated. Deprecated in 5.4; refactor to use JavaScript modules instead