number
, issue_date
SELECT
document_details,
JSON_EXTRACT(document_details, '$.number'),
JSON_EXTRACT(document_details, '$.issue_date'),
JSON_UNQUOTE(JSON_EXTRACT(document_details, '$.issue_date'))
FROM students
Note: We can use JSON_UNQUOTE()
function to remove quotes around JSON string values