Package javax.json

Interface JsonStructure

  • All Superinterfaces:
    JsonValue
    All Known Subinterfaces:
    JsonArray, JsonObject

    public interface JsonStructure
    extends JsonValue
    Super type for the two structured types in JSON (objects and arrays).

    This is a near-exact copy of the same-titled Java EE 8 Class: javax.json.JsonStructure
    Commenting has been slightly modified to accompany HiLiting the Code Examples.
    Java Source Code remains identical to the Sun-Oracle & 'GlassFish' Released Distributions.

    Read included License: HERE, and the CDDL+GPL-1.1
    All javax.json.* Code Obtained From: GitHub JavaEE jsonp  Public Archive.


    • Method Detail

      • getValue

         
        default JsonValue getValue​(java.lang.String jsonPointer)
        Get the value referenced by the provided JSON Pointer in the JsonStructure.
        Parameters:
        jsonPointer - the JSON Pointer
        Returns:
        the JsonValue at the referenced location
        Throws:
        JsonException - if the JSON Pointer is malformed, or if it references a non-existing member or value.
        Since:
        1.1
        Code:
        Exact Method Body:
         return Json.createPointer(jsonPointer).getValue(this);