I have Sample Data
set @j = '[{"id": 1, "title": "Mohan"},
{"id": 2, "title": "Rama"},
{"id": 3, "title": "IP Mana"}]';
Select REPLACE(REPLACE(REPLACE(JSON_EXTRACT(@j, '$**.*'),"[",""),"]",""),'"','') AS Name_List from tbl_employee
I'm getting Data Like this :
NameList
1, Mohan, 2, Rama, 3, IP Mana
I'm trying to get output like this :
NameList
1 : Mohan, 2 : Rama, 3 : IP Mana
Can any one Suggest me .