private JSONObject getJSONForBundle ( Bundle bundle ) throws JSONException { JSONObject root = new JSONObject ( ) ; for ( String key : bundle . keySet ( ) ) { root . put ( key , getJSONValue ( bundle . get ( key ) ) ) ; } return root ; }
Gets a JSONObject equivalent to the input bundle for use when falling back to a web navigation .