How to read the object inside json array android : I have json in this format.I m trying to create serialization class to store the value.
how to read the "personaldata" field.
I am making a separate class PersonalData to read it.
And in my main serialization class i am reading it as 
List<PersonalData>personalData.

Is it the right way to do it.
And if yes .how will i fetch the personal data values.

    {
    	
    	"result": [{
    	"name": 0,
    	"age": 1,
    	"class": 0…….some more data
        “personalData” : {
    “isMarried” : true/false, 
    “isEligible” : true/false, 
    “Indian” : true/false, 
     }
     
     ]}