title: json format for user data using firebase
body: <p>I am using firebase for my android app. I have following structure for the users data in json:</p>
  
  <pre><code>     {  "employee":
          {
            "empone" : {
              "id" : "11",
              "name" : "emponeone"
            },
            "emptwo" : {
              "id" : 10,
              "name" : "emptwo"
            }
          }
  }
  </code></pre>
  
  <p>I am trying to get names of all the employee in my arrylist. But when I am reading the data from firebase I am getting the employee reference in Datasnapshot object which I am not able to store into my jsonObject. I tried following :</p>
  
  <pre><code>String data1= String.valueOf(dataSnapshot.getValue());
  </code></pre>
  
  <p>But this gives me the data in following format :</p>
  
  <pre><code>  data1= {empone={name=emponeone, id=11}, emptwo={name=emptwo, id=10}}
  </code></pre>
  
  <p>Is there anyway so that I can get only the name field in my arraylist or any other format to get the employee structure just the way I want it?</p>