function getJsonObjLength(jsonObj){json
var Length=0;對象
for(var item in jsonObj){字符串
Length++;get
}it
return Length; io
}function
//注意是JSON對象而不是JSON數據字符串數據