如何解析从Java中的XML转换为JSON的android属性?

我正在尝试从以下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']

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念