I am trying to write a sql query (In Presto) to extract the readable text in the details field unable to get the correct path
{
"2177f7f1-0d36-4663-b190-b686ab2d9031":{
"button_name":"No Issue",
"details":{
"2abe85b0-5dee-49be-809f-448444af55c4":"No Issue Due to XYZ"
}
},
"b2a6aba8-abe4-4ded-928f-af96eee675ef":{
"button_name":"No Issue",
"details":{
"b40382f7-bf8a-477a-9f38-126d7d0016c4":"Double Blind Confirmed"
}
}
}
This is what I tried but does not work
SELECT json_extract_scalar(content, '$.details') FROM table