All Known Implementing Classes:
CsvExtractSpec, JsonExtractSpec

public sealed interface ExtractSpec permits JsonExtractSpec, CsvExtractSpec
Sealed interface describing how to extract tabular data from an HTTP response.
  • JsonExtractSpec — parse the body as JSON and apply a JSONPath root expression to locate the array of objects: extract: json("$.items[*]")
  • CsvExtractSpec — parse the body as CSV: extract: csv(header: true)