## Uses of Interface
javax.json.JsonValue

- Packages that use JsonValue
  Package | Description
  --- | ---
  javax.json | Provides an object model API to process JSON.
  javax.json.stream | Provides a streaming API to parse and generate JSON.

- - ### Uses of JsonValue in javax.json

    Subinterfaces of JsonValue in javax.json
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `JsonArray` `JsonArray` represents an immutable JSON array (an ordered sequence of zero or more values).
    `interface` | `JsonNumber` An immutable JSON number value.
    `interface` | `JsonObject` `JsonObject` class represents an immutable JSON object value (an unordered collection of zero or more name/value pairs).
    `interface` | `JsonString` An immutable JSON string value.
    `interface` | `JsonStructure` Super type for the two structured types in JSON (`object`s and `array`s).

    Fields in javax.json declared as JsonValue
    Modifier and Type | Field and Description
    --- | ---
    `static JsonValue` | JsonValue.`FALSE` JSON false value
    `static JsonValue` | JsonValue.`NULL` JSON null value.
    `static JsonValue` | JsonValue.`TRUE` JSON true value.

    Methods in javax.json with type parameters of type JsonValue
    Modifier and Type | Method and Description
    --- | ---
    `<T extends JsonValue> List<T>` | JsonArray.`getValuesAs(Class<T> clazz)` Returns a list a view of the specified type for the array.

    Methods in javax.json with parameters of type JsonValue
    Modifier and Type | Method and Description
    --- | ---
    `JsonArrayBuilder` | JsonArrayBuilder.`add(JsonValue value)` Adds a value to the array.
    `JsonObjectBuilder` | JsonObjectBuilder.`add(String name, JsonValue value)` Adds a name/`JsonValue` pair to the JSON object associated with this object builder.

  - ### Uses of JsonValue in javax.json.stream

    Methods in javax.json.stream with parameters of type JsonValue
    Modifier and Type | Method and Description
    --- | ---
    `JsonGenerator` | JsonGenerator.`write(JsonValue value)` Writes the specified value as a JSON value within the current array context.
    `JsonGenerator` | JsonGenerator.`write(String name, JsonValue value)` Writes a JSON name/value pair in the current object context.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.