I want parse Woocomerce API response in React Native.
Can any one tell how to parse id, name, categories array and images array in React Native FlatList from JSON response mention below.
{
"id":794,
"name":"Premium Quality",
"catalog_visibility":"visible",
"price":"21.99",
"regular_price":"21.99",
"sale_price":"",
"categories":[
{
"id":9,
"name":"Clothing",
"slug":"clothing"
},
{
"id":14,
"name":"T-shirts",
"slug":"t-shirts"
}
],
"tags":[
],
"images":[
{
"id":792,
"date_created":"2017-03-23T14:01:13",
"date_created_gmt":"2017-03-23T20:01:13",
"date_modified":"2017-03-23T14:01:13",
"date_modified_gmt":"2017-03-23T20:01:13",
"src":"https://example.com/wp-content/uploads/2017/03/T_2_front-4.jpg",
"name":"",
"alt":""
},
{
"id":793,
"date_created":"2017-03-23T14:01:14",
"date_created_gmt":"2017-03-23T20:01:14",
"date_modified":"2017-03-23T14:01:14",
"date_modified_gmt":"2017-03-23T20:01:14",
"src":"https://example.com/wp-content/uploads/2017/03/T_2_back-2.jpg",
"name":"",
"alt":""
}
]
}