Overview
JSON_EXTRACT_PATH() function extracts JSON nested value from a specified path.
Syntax
The syntax of theJSON_EXTRACT_PATH() function can be seen below.
from_json: the JSON value from which to extract.path: the path to extract.
Another Option
Besides the syntax above, Oxla provides and supports the use of operators in queries. See the syntax below:from_json: the JSON value from which to extract.::JSON: a symbol that casts the text literal to a JSON type.path: key of the field that we want to extract.
Examples
These examples display howJSON_EXTRACT_PATH() extracts the “oxla” JSON sub-object from the specified path.
- Use the below query:
- Run the query below: