Open this example in the interactive library
Source code
SELECT json_extract('["Union","King","Queen"]','$[#-1]') AS terminus;
Sample output
[
{
"terminus": "Queen"
}
]
Open this example in the interactive library
SELECT json_extract('["Union","King","Queen"]','$[#-1]') AS terminus;
[
{
"terminus": "Queen"
}
]