I am new to javascript and I am facing issue with complex structure with I need to break into array.
my structure is
[
{
"Key": "ProducePRINKA0370001",
"Record": {
"docType": "Produce",
"PRODUCEID": "PRINKA0370001"
}
},
{
"Key": "ProducePRINKA0370038",
"Record": {
"docType": "Produce",
"PRODUCEID": "PRINKA0370038"
}
},
{
"Key": "ProducePRINKA0370050",
"Record": {
"docType": "Produce",
"PRODUCEID": "PRINKA0370050"
}
}
]
Which I need to break into array and its should look below
[
{
"docType": "Produce",
"PRODUCEID": "PRINKA0370051"
},
{
"docType": "Produce",
"PRODUCEID": "PRINKA0370038"
}
]
I have tried all the way however couldn't do it. Please help me on this
thanks in advance