I\'d like to convert the an Intent\'s extras Bundle into a JSONObject so that I can pass it to/from JavaScript.
Is there a quick or best way to do this conversion? I
Object myJsonObj = bundleObject.get("yourKey"); JsonParser parser = new JsonParser(); JsonObject json = parser.parse(myJsonObj.toString()).getAsJsonObject(); json.get("memberInJson").getAsString();