If this json output looks like this
{
"Bank_Name":"This is bank name",
"ACC_Name":"Tummy",
"ACC_No":"1122XXXX115",
"Date_Active":"Jan 31 2019 2:16PM",
"Date_Expired":"Nov 17 2020 1:14PM",
"Bank_Status":"Expired",
"email_Notif":[
{"Verification":[{"User_Email":"[email protected]","Send_DateTime":"2020-11-03T13:30:59.7036152"},
{"User_Email":"[email protected]","Send_DateTime":"2020-11-03T13:31:02.1563596"}]
},{"Verified":[{"DateTime": "2020-11-03T13:31:02.1563596"}]
},
{ "Updating":[{"User_Email":"[email protected]","Send_DateTime":"2020-11-03T13:30:59.7036152"},
{"User_Email":"[email protected]","Send_DateTime":"2020-11-03T13:31:02.1563596"}]
}
],
"rejection_Statuses":[
{"Verification":"Nov 3 2020 01:31:02 PM"} ,
{"Verified":"Nov 7 2020 01:12:03 PM"} ,
{"Updating":"Nov 17 2020 01:18:03 PM"} ,
{"Re_run":"Nov 27 2020 05:18:03 PM"}
]
}
Questions:
- How do I use "JSON_Modifiy" in SQL Server to insert
email_Notif(as object of array) ? if JSON input looks like this:{"Bank_Name": "BPD SULAWESI SELATAN", "ACC_Name": "Tutik", "ACC_No": "1122000115", "Date_Active": "Jan 31 2019 2:16PM", "Date_Expired": "Nov 17 2020 1:14PM", "Bank_Status": "Expired", "rejection_Statuses":[ {"Verification":"Nov 3 2020 01:31:02 PM"} , {"Verified":"Nov 7 2020 01:12:03 PM"} , {"Updating":"Nov 17 2020 01:18:03 PM"} , {"Re_run":"Nov 27 2020 05:18:03 PM"}] } - How to get value from "email_Notify" as JSON format in SQL Server query by using
select statement? (Verification, Verified and Updating)