Read a path inside a JSON document.
Section: json and string functions
Extract a value from JSON
sql
sql
SELECT JSON_EXTRACT(settings, '$.notifications.email') AS email_enabled FROM user_preferences;Explanation
Returns JSON data; use `->>`-style unquoting equivalents or JSON_UNQUOTE when needed.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing json and string functions