0
我在我的項目中使用JSON和我得到的JSON這樣的數據:如何處理json中的空值?
{ "email" : null,
"fax" : null,
"upload" : [
{ "ID" : "80693",
"username" : "khatridha123",
"name" : "s_raju.jpg",
"size" : "42644",
"extention" : ".jpg",
"insertMethod" : "upload",
"insertInfo" : "NULL",
"created" : "2011-09-20 06:34:10",
"lastUpdate" : "2011-10-18 00:30:27"
}
]
}
如何可以解析這些數據轉化爲實現代碼如下,並檢查上傳字段包含記錄或沒有?
'if(strValue = nil)'? 6票和未被注意? – 2012-04-03 07:15:50
確定了它.thanx。 – Kartik