Package jakarta.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).
  • Method Details

    • getValue

      default JsonValue getValue(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