title: how can I read data from json array and pass it from one fragment to another fragment and show it in a recyclerview?
body: <p>Its the data for a quiz, which include "id" as question ID and "test_id" as a quiz ID. I need to fetch all the question(no. of question may differ) and options with correct answer and need to populate it in a recyclerview.</p>
  
  <pre><code>[  
  {  
  "id":"13",
  "test_id":"1",
  "question":"find out relationship with the third word.",
  "options":"[\"speed\",\"hiking\",\"needle\",\"direction\"]",
  "correct_answer":"3",
  "create_date":"2016-10-27 07:37:39",
  "update_date":null
  },
  {  
  "id":"14",
  "test_id":"1",
  "question":"find out which of the answer choices completes the same relationship with the third word.",
  "options":"[\"not\",\"set\",\"get\",\"pet\"]",
  "correct_answer":"3",
  "create_date":"2016-10-28 07:37:39",
  "update_date":null
  },
  {  
  "id":"15",
  "test_id":"1",
  "question":"the same relationship with the third word.",
  "options":"[\"jet\",\"read\",\"nor\",\"sour\"]",
  "correct_answer":"3",
  "create_date":"2016-10-28 10:37:39",
  "update_date":null
  },
  {  
  "id":"16",
  "test_id":"1",
  "question":"A good way to figure out the relationship ",
  "options":"[\"trekking\",\"hiking\",\"seed\",\"turn\"]",
  "correct_answer":"3",
  "create_date":"2016-10-28 18:37:39",
  "update_date":null
  }
  ]
  </code></pre>
  
  <p>I have used this code:</p>
  
  <pre><code>String res = new QuestionRequest(getActivity().getApplicationContext(), "level_question").execute(test_id).get();
  
  JSONArray result = new JSONArray(res);
  
  List&lt;DataQuestion&gt; data=new ArrayList&lt;&gt;();
  
  
  for(int i=0;i&lt;result.length();i++){
                      JSONObject json_data = result.getJSONObject(i);
                      DataQuestion rowdata = new DataQuestion();
                      rowdata.id= json_data.getString("id");
                      rowdata.test_id= json_data.getString("test_id");
                      rowdata.question= json_data.getString("question");
                      rowdata.answer_choices= json_data.getString("answer_choices");
                      rowdata.correct_answer= json_data.getString("correct_answer");
                      data.add(rowdata);
                  }
  </code></pre>
  
  <p>I have stored it in arraylist. Now how should send it another fragment. I tried to send data using Bundle but don't know how to send arraylist.</p>
  
  <p>where:
  DataQuestion.java is</p>
  
  <pre><code>public class DataQuestion {
  public String id;
  public String test_id;
  public String question;
  public String answer_choices;
  public String correct_answer;
  }
  </code></pre>