Expand description
Response-decode pipeline (#515).
A declarative chain applied to the raw response body before record extraction, so a source can consume payloads that aren’t plain JSON — including files embedded in a JSON/SOAP envelope:
decode:
- extract: "$.d.reportBytes" # pull a field out of the envelope
- base64 # base64 → bytes
- unzip: { member: "*.csv" } # or `gunzip`
- parse: { format: csv, has_headers: true }Steps compose left-to-right over a byte buffer; the terminal parse step
turns the bytes into records. Without an explicit parse, the bytes are
parsed as JSON.
Structs§
Enums§
- Decode
Step - One step of the decode chain.
- Parse
Format - Final-parse format for a decode chain.
- Simple
Step - A byte-chain step with no parameters (
- base64,- gunzip).
Functions§
- run_
decode - Run the decode chain over the response body, returning records.