Created
September 28, 2013 07:16
-
-
Save xyqfer/6739447 to your computer and use it in GitHub Desktop.
JSON for IE 6、7、8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jsonStr = '{"name": "w3help", "url": "www.w3help.org", "tech": ["js", "HTML", "CSS", 5, 4.01, 2.1],' | |
+ '"online": true, "category": {"RCA": "Root Cause Artical", "KB":"Knowledge Base"},' | |
+ '"version": 1}'; | |
json2 = (new Function("return " + jsonStr))(); | |
for(p in json2) { | |
alert(json2[p]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment