我正在尝试从以下JSON对象解析android:versionName:
{
"android:hardwareAccelerated": "true",
"android:versionCode": "40020",
"android:versionName": "4.0.20",
"package": "com.xxx.xxx",
"xmlns:android": "http://schemas.android.com/apk/res/android"
}
有人可以帮我吗?
先感谢您
解决方法:
像这样使用它[[key]]-Property accessors – Bracket
对于您的JSON而言(Obj只是JSON对象的一种表示形式):
obj['android:versionName']