How to read below json data using GSON library in android?
<p>I am fetching data from json file and want to read data using pojo class in android. I tried some solutions from internet but i am not finding exact solution. please help me out.</p>

<pre><code>{  
"data":[  
    {  
        "id":"7",
        "parent_id":"3",
        "catalogue_code":"vol 01",
        "catalogue_name":"Devika",
        "image":"images\/catalogue_image\/saree\/201Dev.jpg",
        "image_code":"201",
        "price":"1905",
        "description":"\"Saree Fabrics : Georgette ,\r\nBlouse Fabrics : Raw Silk ,\r\n Blouse Length : 0.80 Mtr\r\nSaree with Blouse : 6.4 Mtr\r\nWidth of Saree : 43 Inches\r\nWork : Designer Embroidered Work,\r\nLook your traditional best with this utmost graceful and sophisticated Kvsfab Orange and Red Georgette Embroidered Saree.Available with Red Raw Silk customizable blouse fabric. Blouse shown in the image is for photography purpose . All accessories shown in the image are for photography purpose.(Slight variation in color is possible)\"\r\n",
        "color":"Orange and Red",
        "fabric":"Georgette",
        "innner":"",
        "fabric_top":"",
        "fabric_bottom":"",
        "fabric_dupatta":"",
        "dupatta":"",
        "size":"",
        "length":"6.5 mtr with blouse",
        "work":"Embroidered",
        "style":"Half N Half",
        "occasion":"Party, wedding",
        "stitch_unstitch":"",
        "blouse":"Half N Half",
        "date":"2015-07-29 12:18:26",
        "main_category":"Sarees",
        "sub_category":"Designer Sarees"
    },
    {  
        "id":"8",
        "parent_id":"3",
        "catalogue_code":"vol 01",
        "catalogue_name":"Devika",
        "image":"images\/catalogue_image\/saree\/202Dev.jpg",
        "image_code":"202",
        "price":"1905",
        "description":"Drape yourself in a distinct aura with this Kvsfab Green and Blue Georgette Embroidered Saree.Available with Blue Raw Silk customizable blouse fabric. Blouse shown in the image is for photography purpose . All accessories shown in the image are for photography purpose.(Slight variation in color is possible)\r\n",
        "color":"Green and Blue",
        "fabric":"Georgette",
        "innner":"",
        "fabric_top":"",
        "fabric_bottom":"",
        "fabric_dupatta":"",
        "dupatta":"",
        "size":"",
        "length":"6.5 mtr with blouse",
        "work":"Embroidered",
        "style":"Half N Half Saree",
        "occasion":"Party",
        "stitch_unstitch":"",
        "blouse":"Half N Half",
        "date":"2015-07-29 12:18:26",
        "main_category":"Sarees",
        "sub_category":"Designer Sarees"
    }
]
}
</code></pre>

<p>Here what I have code so far.</p>

<p>jsonobject contains above json data</p>

<pre><code>Gson gson = new GsonBuilder().create();
Log.d("JSON",jsonObject.toString());
String jsonOutput = jsonObject.toString();

Type listType = new TypeToken&lt;List&lt;CatalogueDetail&gt;&gt;(){}.getType();
ArrayList&lt;CatalogueDetail&gt;      catalogueDetailslist = (List&lt;CatalogueDetail&gt;) gson.fromJson(jsonOutput, listType);
</code></pre>