Interface JsonOperations.PathSpec<P extends JsonOperations.PathSpec<P>>

Type Parameters:
P - self-type used for fluent method chaining.
All Known Subinterfaces:
JsonOperations.JsonArraySpec, JsonOperations.JsonAtKeySpec, JsonOperations.JsonAtKeysSpec, JsonOperations.JsonBooleanSpec, JsonOperations.JsonKeySupport<P>, JsonOperations.JsonStringSpec
Enclosing interface:
JsonOperations<K>

public static interface JsonOperations.PathSpec<P extends JsonOperations.PathSpec<P>>
Common support for selecting the JSON path against which commands operate.
Since:
4.2
Author:
Mark Paluch, Yordan Tsintsov, Moritz Halbritter
  • Method Summary

    Modifier and Type
    Method
    Description
    path(String jsonPath)
    Select the JSON path to operate on.
    Select the document root path ($).
  • Method Details

    • root

      Select the document root path ($).
      Returns:
      a new spec instance.
    • path

      @CheckReturnValue P path(String jsonPath)
      Select the JSON path to operate on.
      Parameters:
      jsonPath - the JSONPath expression.
      Returns:
      a new spec instance.