JSON_PATH
Description
The JSON_PATH
function allows you to query specific fields within a JSON object using a JSON path expression. This is particularly useful for extracting nested values or values from arrays within a JSON string.
Syntax
Arguments
Name | Type | Description | Default Value |
---|---|---|---|
path | string | The JSON path expression to navigate within the JSON object. | |
JSON | string | The JSON object from which to extract the value. |
Input Record Example
Here is an example of an input record containing nested JSON and an array:
Examples
Basic Example
Output: 123
Array Example
Output: ["Laptop", "Mouse", "Keyboard"]
Transformation Job Example
Query Result
value | OrderID | OrderItems |
---|---|---|
|
|
|
Last updated