I Have following JSON data, I need to iterate this data based on Keytype in JAVASCRIPT. It should return record from only the passed key code. Say i need record from 438 means it should give me only following data. (ex:"K": "43800001", "D": "Data1")
{
"GroupCode": {
"PickType": [
{
"@KeyType": "438",
"R": [
{
"K": "43800001",
"D": "Data1"
}
]
},
{
"@KeyType": "439",
"R": [
{
"K": "43900001",
"D": "Data2"
}
]
},
{
"@KeyType": "440",
"R": [
{
"K": "44000001",
"D": "Data3"
}
]
},
{
"@KeyType": "441",
"R": [
{
"K": "44100001",
"D": "Data4"
}
]
}
]
}
}
as I'm not good in java script and new to it, i haven't tried coding for this. Please help me in getting the data.