Iam not retriving the value :     ArrayList<Object> push=new   ArrayList<Object>();
            pin=(EditText)findViewById(R.id.editText2);
push.add("amam");

        JSONObject json = new JSONObject();
        try {
            json.put("uniqueArrays", new JSONArray(push));
        } catch (JSONException e) {
            e.printStackTrace();
        }

        JSONObject jsosn = new JSONObject();
        JSONArray items = jsosn.optJSONArray("uniqueArrays");

        Log.d("retrived values",String.valueOf(items));




Iam trying to insert array list and retrive it ,can anyone help me with best method or guide me int the correct way