string to json
javascript 에서 string 을 json 으로 변경 시키는 방법은 다음과 같다. [code] var otherString = '{"aspect": "' + key + '", "property": "' + statusList[key][key2] + '"}'; var jsonData = eval('(' + otherString + ')'); [/code] 예) [code]var statusList = { "Battery" : ["batteryLevel", "batteryBeingCharged"], "Device" : ["imei", "model", "version", "vendor"], "Display" : ["resolutionHeight", "pixelAspectRatio", "dpiY", "r..
더보기