Hello I was trying to get the array of the data which was written in JSON
For example this is my JSON object
{
Data1 : {
Data2 : "hello",
Data3 : "hi"
},
Data4 : {
Data5 : "this is Karan",
}
}
I want the output as an array which contains [Data1, Data4]
Is there any way to do this Thank you