If I have a simple SELECT statement like this:
SELECT JSON_EXTRACT(\'{\"username\":\"Alexander\"}\', \'$.username\');
I would expect it to
You can use JSON_UNQUOTE
to achieve this.
select JSON_UNQUOTE(JSON_EXTRACT(base, '$.scope')) as scope from t_name
ref: Functions That Modify JSON Values
you can use replace() with it to remove quotation marks
SELECT replace(JSON_EXTRACT('{"username":"Alexander"}', '$.username'), '\"', '');