JSON中的get和opt方法的区别

区别 不想抛异常,不适用try{}catch,请适用opt方法 相反,使用get方法,会抛异常,须要try一下 json中的opt和get方法 ## get()和opt() getBoolean()和optBoolean(); getDouble()和optDouble(); getInt()和optInt(); getLong()和optLong(); getString()和optString
相关文章
相关标签/搜索