Skip to main content

JSON_QUERY_BYTES

Evaluate a JMESPath expression and return exact text.

Return Type​

Bytes.

Inputs​

arg is a required Json expression. Required scalar expression selects or computes the result. Required undeterminedIf.evaluationError and resultTypeMismatch provide diagnostics; optional resultIsEmpty handles empty results.

Syntax and Example​

JSON_QUERY_BYTES:
arg:
JSON_FROM:
arg:
BYTES: '{"label":"Team-Blue","enabled":true,"limit":4}'
undeterminedIf:
isInvalid: The configuration cannot be parsed.
expression: "label"
undeterminedIf:
evaluationError: The configuration query failed.
resultTypeMismatch: The query returned an unexpected type.
resultIsEmpty: The required configuration value is missing.

Behavior and Missing Values​

Query failures or incompatible results produce UNDETERMINED using the configured message. String results preserve case and whitespace; without resultIsEmpty, an empty string is returned. Include missing values and type mismatches in fixtures.