title: Android create a Json String
body: <p>I am trying to create a JSON String in the Android application.</p>
  
  <pre><code>    JSONArray jArrayFacebookData = new JSONArray();
      JSONObject jObjectType = new JSONObject();
  
      // put elements into the object as a key-value pair
      jObjectType.put("type", "facebook_login");
  
      jArrayFacebookData.put(jObjectType);
  
      // 2nd array for user information
      JSONObject jObjectData = new JSONObject();
  
  
      // Create Json Object using Facebook Data
      jObjectData.put("facebook_user_id", id);
      jObjectData.put("first_name", first_name);
      jObjectData.put("last_name", last_name);
      jObjectData.put("email", email);
      jObjectData.put("username", username);
      jObjectData.put("birthday", birthday);
      jObjectData.put("gender", gender);
      jObjectData.put("location", place);
      jObjectData.put("display_photo", display_photo_url);
  
      jArrayFacebookData.put(jObjectData);
  </code></pre>
  
  <p>Which creates a string like this</p>
  
  <pre><code>[
     {
        "type":"facebook_login"
     },
     {
        "birthday":"06\/22\/1986",
        "first_name":"Harsha",
        "username":"harshamv",
        "location":"Bangalore, India",
        "email":"hmv2206@gmail.com",
        "last_name":"Mv",
        "gender":"male",
        "facebook_user_id":"1423671254",
        "display_photo":"http:\/\/graph.facebook.com\/1423671254\/picture?type=large"
     }
  ]
  </code></pre>
  
  <p>I want to create a JSON string something like this</p>
  
  <pre><code>[
     "system":{
        "type":"facebook_login"
     },
     "data":{
        "birthday":"06\/22\/1986",
        "first_name":"Harsha",
        "username":"harshamv",
        "location":"Bangalore, India",
        "email":"hmv2206@gmail.com",
        "last_name":"Mv",
        "gender":"male",
        "facebook_user_id":"1423671254",
        "display_photo":"http:\/\/graph.facebook.com\/1423671254\/picture?type=large"
     }
  ]
  </code></pre>