I have a column that contains a JSON, for ex:
{
"overview": {
"resourceName": "VM-test",
"recommendedAction": "Change machine type",
"resource": "//compute.googleapis.com/projects/test/zones/europe-west2-c/instances/VM-test",
"currentMachineType": {
"cpuMilliVcores": 8000.0,
"memoryBytes": 3.221225472E10,
"name": "n1-standard-8",
"memoryMb": 30720.0,
"guestCpus": 8.0
},
"location": "europe-west2-c",
"recommendedMachineType": {
"cpuMilliVcores": 4000.0,
"name": "custom-4-23552",
"memoryBytes": 2.4696061952E10,
"memoryMb": 23552.0,
"guestCpus": 4.0
}
}
}
I would like to extract the "resourceName": and its values into a different column called resourceName and the "resource": "//compute.googleapis.com/projects/test/europe-west2-c/instances/VM-test" onto another one called ProjectName which will hold the project name that is located inside the Uri . I looked over the JSON_EXTRACT but couldn't figure it out.
Any help would be greatly appreciated.
Thank you

