以下是从文本文件中读取并存储在变量中的json元素。即访问存储在变量中的json元素
sCurrentLine = {
"description": "Update gclient to handle when a DEPS file has no deps dictionary.\n\nCommitted: http://src.chromium.org/viewvc/chrome?view=rev&revision=1652",
"cc": [],
"reviewers": [
"[email protected]"
],
"owner_email": "[email protected]",
"private": false,
"base_url": "svn://chrome-svn.corp.google.com/chrome/trunk/depot_tools/",
"owner": "sguireknight",
"subject": "Handle when a DEPS file has no deps dictionary.",
"created": "2008-09-02 20:11:04.145884",
"patchsets": [
1
],
"modified": "2011-05-09 13:10:20.276741",
"closed": true,
"commit": false,
"issue": 201
}
我想访问问题值201.我该怎么做?
方式? – qJake
嗨新用户你搜索过,还是你尝试过?检查http://stackoverflow.com/questions/383692/what-is-json-and-why-would-i-use-it?rq=1 – ncm