Converting MySQL queried JSON to Object

I have been struggling to convert the MySQL query JSON object below into a normal object. Any ideas on how to go about this? I have been trying for a long time but cant seem to find a solution. Thanks for your time.

{"lectures":"{\"id\":1,\"lecture_id\":9,\"school\":\"University\",\"location\":\"London\",\"class\":\"21\",\"subject\":\"Advanced Maths\",\"teacher_name\":\"John Andrews\",\"teacher_email\":\"test@yahoo.com\",\"start_time\":\"18:00\",\"end_time\":\"21:00\",\"date\":\"Wed Apr 14 2021\",\"room_uuid\":\"0b762ce4-eb04-4068-a199-f32bdb694d47\",\"room_password\":\"pw\",\"additional_notes\":\"Bring protractor\"}"}


Read more here: https://stackoverflow.com/questions/67003178/converting-mysql-queried-json-to-object

Content Attribution

This content was originally published by lgrech at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: