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

- Packages that use JSONObject
  Package | Description
  --- | ---
  org.apache.tapestry5.alerts | Support for a standard way of presenting alerts to the user, via the `AlertManager` service combined with the `Alerts` component.
  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.internal.services.rest | [INTERNAL USE ONLY] REST support classes; 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.rest.jackson.internal |
  org.apache.tapestry5.services | Core services
  org.apache.tapestry5.services.ajax | Utilities for handling Ajax-oriented requests, including partial render requests.
  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.
  org.apache.tapestry5.services.rest | Services related to Tapestry's REST support, including OpenAPI 3.0 description generation.

- - ### Uses of JSONObject in org.apache.tapestry5.alerts

    Methods in org.apache.tapestry5.alerts that return JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `JSONObject` | Alert.`toJSON()` |

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

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

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

    Methods in org.apache.tapestry5.internal.services with parameters of type JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | PartialMarkupDocumentLinker.`commit​(JSONObject reply)` | Commits changes, adding one or more keys to the reply.
    `void` | JSONObjectEventResultProcessor.`processResultValue​(JSONObject value)` |
    `void` | PartialMarkupRendererTerminator.`renderMarkup​(MarkupWriter writer, JSONObject reply)` |
    `void` | RenderCommandComponentEventResultProcessor.`renderMarkup​(MarkupWriter writer, JSONObject reply, PartialMarkupRenderer renderer)` | As a filter, this class does three things: It creates an outer element to capture the partial page content that will be rendered It does setup and cleanup with the `AjaxFormUpdateController` It extracts the child markup and stuffs it into the reply's "content" property.
    `void` | PageRenderQueue.`renderPartial​(MarkupWriter writer, JSONObject reply)` | Performs a partial markup render, as configured via `PageRenderQueue.addPartialRenderer(org.apache.tapestry5.runtime.RenderCommand)`.
    `void` | PageRenderQueueImpl.`renderPartial​(MarkupWriter writer, JSONObject reply)` |
    `void` | AjaxPartialResponseRenderer.`renderPartialPageMarkup​(JSONObject reply)` | Used to render the partial response using a base reply object, to which any Tapestry-related information (usually related to zone updates and initializations) will be added.
    `void` | AjaxPartialResponseRendererImpl.`renderPartialPageMarkup​(JSONObject reply)` |

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

    Methods in org.apache.tapestry5.internal.services.ajax with parameters of type JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | JavaScriptSupportImpl.`addInitializerCall​(String functionName, JSONObject parameter)` |
    `void` | JavaScriptSupportImpl.`addInitializerCall​(InitializationPriority priority, String functionName, JSONObject parameter)` |
    `void` | SingleZonePartialRendererFilter.`renderMarkup​(MarkupWriter writer, JSONObject reply, PartialMarkupRenderer renderer)` |

  - ### Uses of JSONObject in org.apache.tapestry5.internal.services.rest

    Methods in org.apache.tapestry5.internal.services.rest that return JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `JSONObject` | DefaultOpenApiDescriptionGenerator.`generate​(JSONObject documentation)` |

    Methods in org.apache.tapestry5.internal.services.rest with parameters of type JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | DefaultOpenApiTypeDescriber.`describe​(JSONObject description, Parameter parameter)` |
    `void` | DefaultOpenApiTypeDescriber.`describeReturnType​(JSONObject description, Method method)` |
    `void` | DefaultOpenApiTypeDescriber.`describeSchema​(Class<?> entity, JSONObject schemas)` |
    `JSONObject` | DefaultOpenApiDescriptionGenerator.`generate​(JSONObject documentation)` |

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

    Methods in org.apache.tapestry5.json that return JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `JSONObject` | JSONObject.`accumulate​(String name, Object value)` | Appends `value` to the array already mapped to `name`.
    `JSONObject` | JSONObject.`append​(String name, Object value)` | Appends values to the array mapped to `name`.
    `JSONObject` | JSONObject.`copy()` | Returns a new JSONObject that is a shallow copy of this JSONObject.
    `JSONObject` | JSONArray.`getJSONObject​(int index)` | Returns the value at `index` if it exists and is a `JSONObject`.
    `JSONObject` | JSONObject.`getJSONObject​(String name)` | Returns the value mapped by `name` if it exists and is a `JSONObject`, or throws otherwise.
    `JSONObject` | JSONObject.`getJSONObjectOrDefault​(String name, JSONObject defaultValue)` | Returns the value to which the specified key is mapped and a JSONObject, or `defaultValue` if this map contains no mapping for the key.
    `JSONObject` | JSONObject.`in​(String key)` | Navigates into a nested JSONObject, creating the JSONObject if necessary.
    `JSONObject` | JSONObject.`put​(String name, Object value)` | Maps `name` to `value`, clobbering any existing name/value mapping with the same name.

    Methods in org.apache.tapestry5.json that return types with arguments of type JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `static <T> Collector<T,​?,​JSONObject>` | JSONCollectors.`toMap​(Function<? super T,​String> keyMapper, Function<? super T,​Object> valueMapper)` | Returns a `Collector` that accumulates elements into a `JSONObject` whose keys and values are the result of applying the provided mapping functions to the input elements.

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

    Constructors in org.apache.tapestry5.json with parameters of type JSONObject
    Constructor | Description
    --- | ---
    `JSONObject​(JSONObject copyFrom, String... names)` | Creates a new `JSONObject` by copying mappings for the listed names from the given object.

  - ### Uses of JSONObject in org.apache.tapestry5.rest.jackson.internal

    Methods in org.apache.tapestry5.rest.jackson.internal with parameters of type JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | JacksonOpenApiTypeDescriber.`describe​(JSONObject description, Parameter parameter)` |
    `void` | JacksonOpenApiTypeDescriber.`describeReturnType​(JSONObject description, Method method)` |
    `void` | JacksonOpenApiTypeDescriber.`describeSchema​(Class<?> entity, JSONObject schemas)` |

  - ### Uses of JSONObject in org.apache.tapestry5.services

    Methods in org.apache.tapestry5.services with parameters of type JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | PartialMarkupRenderer.`renderMarkup​(MarkupWriter writer, JSONObject reply)` | Implementations should perform work before or after passing the writer to the renderer.
    `void` | PartialMarkupRendererFilter.`renderMarkup​(MarkupWriter writer, JSONObject reply, PartialMarkupRenderer renderer)` | Implementations should perform work before or after passing the writer to the renderer.

  - ### Uses of JSONObject in org.apache.tapestry5.services.ajax

    Methods in org.apache.tapestry5.services.ajax with parameters of type JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | JSONCallback.`run​(JSONObject reply)` | Modify the reply, typically by adding additional keys.

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

    Methods in org.apache.tapestry5.services.javascript that return JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `JSONObject` | ModuleConfigurationCallback.`configure​(JSONObject configuration)` | Receives the current configuration, which can be copied or returned, or (more typically) modified and returned.

    Methods in org.apache.tapestry5.services.javascript with parameters of type JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | JavaScriptSupport.`addInitializerCall​(String functionName, JSONObject parameter)` | Deprecated. Deprecated in 5.4; refactor to use JavaScript modules instead
    `void` | JavaScriptSupport.`addInitializerCall​(InitializationPriority priority, String functionName, JSONObject parameter)` | Deprecated. Deprecated in 5.4; refactor to use JavaScript modules instead
    `JSONObject` | ModuleConfigurationCallback.`configure​(JSONObject configuration)` | Receives the current configuration, which can be copied or returned, or (more typically) modified and returned.

  - ### Uses of JSONObject in org.apache.tapestry5.services.rest

    Methods in org.apache.tapestry5.services.rest that return JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `JSONObject` | OpenApiDescriptionGenerator.`generate​(JSONObject documentation)` | Generates or customizes the OpenAPI 3.0 documentation for this webapp's REST endpoints.

    Methods in org.apache.tapestry5.services.rest with parameters of type JSONObject
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | OpenApiTypeDescriber.`describe​(JSONObject description, Parameter parameter)` | Describes a REST event handler method parameter.
    `void` | OpenApiTypeDescriber.`describeReturnType​(JSONObject description, Method method)` | Describes a REST event handler method return type.
    `void` | OpenApiTypeDescriber.`describeSchema​(Class<?> entity, JSONObject schemas)` | Describes the schema of a mapped entity class
    `JSONObject` | OpenApiDescriptionGenerator.`generate​(JSONObject documentation)` | Generates or customizes the OpenAPI 3.0 documentation for this webapp's REST endpoints.