fc.json.*.
jq
Applies a JQ query to a column containing JSON-formatted strings.Input column of type
JsonType.A column containing the result of applying the JQ query to each row’s JSON input.
The input column must be of type
JsonType. Use cast(JsonType) if needed to ensure correct typing.Examples
get_type
Get the JSON type of each value.Input column of type
JsonType.A column of strings indicating the JSON type:
"string", "number", "boolean", "array", "object", or "null".Examples
contains
Check if a JSON value contains the specified value using recursive deep search.Input column of type
JsonType.Valid JSON string to search for.
A column of booleans indicating whether the JSON contains the value.
Matching Rules
- Objects: Uses partial matching -
{"role": "admin"}matches{"role": "admin", "level": 5} - Arrays: Uses exact matching -
[1, 2]only matches exactly[1, 2], not[1, 2, 3] - Primitives: Uses exact matching -
42matches42but not"42" - Search is recursive: Searches at all nesting levels throughout the JSON structure
- Type-aware: Distinguishes between
42(number) and"42"(string)
