javax.json

## Interface JsonValue

- All Known Subinterfaces:
    JsonArray, JsonNumber, JsonObject, JsonString, JsonStructure

      public interface JsonValue

  `JsonValue` represents an immutable JSON value.

  A JSON value is one of the following: an object (`JsonObject`), an array (`JsonArray`), a number (`JsonNumber`), a string (`JsonString`), `true` (`JsonValue.TRUE`), `false` (`JsonValue.FALSE`), or `null` (`JsonValue.NULL`).

  Author:
    Jitendra Kotamraju

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `JsonValue.ValueType` Indicates the type of a `JsonValue` object.

  - ### Field Summary

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

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `JsonValue.ValueType` | `getValueType()` Returns the value type of this JSON value.
    `String` | `toString()` Returns JSON text for this JSON value.

- - ### Field Detail

    - #### NULL

          static final JsonValue NULL

      JSON null value.

    - #### TRUE

          static final JsonValue TRUE

      JSON true value.

    - #### FALSE

          static final JsonValue FALSE

      JSON false value

  - ### Method Detail

    - #### getValueType

          JsonValue.ValueType getValueType()

      Returns the value type of this JSON value.
      Returns:
        JSON value type

    - #### toString

          String toString()

      Returns JSON text for this JSON value.
      Overrides:
        `toString` in class `Object`
      Returns:
        JSON text

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