JSON_POINTER_EXTRACT_TEXT returns it as SQL TEXT, removing outer quotes and decoding characters. Otherwise, it returns NULL.
Syntax
Parameters
Return Type
TEXT
- If any input values are
NULL, the function will returnNULL.
Examples
Example The following code example extracts the value at path/value/uid from the JSON document, removes the outermost quotes, and returns the result as SQL TEXT:
Rows: 1Execution time: 5.57ms
/value/no_such_key from the JSON document and returns NULL because the key does not exist:
Rows: 1Execution time: 7.32ms
/value/code from the JSON document and returns NULL because the value at the specified path is an integer, not a string:
Rows: 1Execution time: 8.20ms
2 of the array at /value/keywords in the JSON document, removes the outermost quotes, and returns it as SQL TEXT:
Rows: 1Execution time: 4.60ms