我是 json 新手,所以请帮我解决这个问题。我正在尝试从此 json 中检索值,例如:我想从此 json 中获取 fname。我如何得到这个值;我尝试了 showdata.fname , showdata.id[0].fname,但没有让我知道这是愚蠢的要求,但请帮助我。
var showdata = {
"fc1d3f54-bcd3-2c4d-2626-cb9904e63800": {
"fname": "Nitish",
"lname": "pakhare",
"phoneno": "4545445",
"id": "fc1d3f54-bcd3-2c4d-2626-cb9904e63800"
},
"6ae08ee6-b02d-0eeb-4ead-1d52bbdadf5e": {
"fname": "Ashish",
"lname": "Pakahre",
"phoneno": "454545",
"id": "6ae08ee6-b02d-0eeb-4ead-1d52bbdadf5e"
},
"7e418c15-17c1-da8e-b614-b362f7937eb9": {
"fname": "Arpita",
"lname": "kimar",
"phoneno": "454545",
"id": "7e418c15-17c1-da8e-b614-b362f7937eb9"
}
}