title: Newtonsoft JSON - create JArray in JArray
body: <p>I am trying to create JSON array using Newtonsoft JSON API but its giving me error. I want to achieve structure like </p>
  
  <pre><code>[
  
      {
          "id":"26",
          "appsurvey":"1",
          "fk_curriculumid":"70",
          "status":"Completed",
          "lastaccessedon":"2014-06-20 09:18:54",
          "questions":[
              {
                  "feedback":"6",
                  "questionid":"1"
              },
              {
                  "feedback":"8",
                  "questionid":"2"
              },
              {
                  "feedback":"1",
                  "questionid":"3"
              }
          ],
          "fk_clientid":"24",
          "learnerid":"260"
      }
  
  ]
  </code></pre>
  
  <p>I want ot add questions array for multiple time but it is giving me error 
  <code>Can not add property questions to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code>JArray surveytrackingA = new JArray();
  /*code to add
  [
  
      {"id":"26",
          "appsurvey":"1",
          "fk_curriculumid":"70",
          "status":"Completed",
          "lastaccessedon":"2014-06-20 09:18:54"}]
  */
  for (int i = 0; i &lt; surveytrackingA.Count; i++)
  {
  
      JObject surveytrackD = (JObject)surveytrackingA[i];
      string queryOne = "select * from table101 where fk_curriculumid='"
              + surveytrackD["fk_curriculumid"].ToString()
              + "' and fk_surveyid='"
              + surveytrackD["appsurvey"].ToString() + "'";
  
      JArray questionsA = new JArray();
  
      using (var stmt = await App.localDB.PrepareStatementAsync(queryOne))
      {
          while (await stmt.StepAsync())
          {
              JObject questionD = new JObject();
              questionD.Add("questionid", stmt.GetTextAt(5));
              questionD.Add("feedback", stmt.GetTextAt(6));
              questionsA.Add(questionD);
          }
      }                    
      surveytrackD.Add("questions", questionsA); /*error occurred here when second question array is getting inserted in surveyTrackD*/
      surveytrackingA.Add(surveytrackD);
  }
  </code></pre>
  
  <p>Can anyone please correct me. Thanks in advance.</p>
  
  <p><strong>Update</strong>:
  surveytrackD have the json data,</p>
  
  <pre><code>{
    "fk_clientid": "24",
    "learnerid": "260",
    "appsurvey": "1",
    "id": "26",
    "fk_curriculumid": "70",
    "status": "completed",
    "lastaccessedon": "2014-06-20 09:18:54"
  }
  </code></pre>