how to pass the url and get json value and bind it to listview
xyz.com this domain passed and below json come
it could return more than 1 json response like below is one set of record
please advice
{
"id": 183682,
"name": "SanDisk USB Flash Drive USB 3.1 and USB 3.0 Type-C 128GB",
"slug": "sandisk-usb-flash-drive-usb-3-1-and-usb-3-0-type-c-128gb",
"permalink": "https://megazar.ro/product/sandisk-usb-flash-drive-usb-3-1-and-usb-3-0-type-c-128gb/",
"date_created": "2020-02-26T15:36:59",
"weight": "0.05",
"dimensions": {
"length": "10.0",
"width": "5.0",
"height": "5.0"
},
"shipping_required": true,
"shipping_taxable": true,
"shipping_class": "",
"shipping_class_id": 0,
"reviews_allowed": true,
"average_rating": "0.00",
"rating_count": 0,
"related_ids": [
28999,
29034,
29071
],
"upsell_ids": [],
"cross_sell_ids": [],
"parent_id": 0,
"purchase_note": "",
"categories": [
{
"id": 425,
"name": "Memorii USB",
"slug": "memorii-usb"
}
],
"tags": [],
"images": [
{
"id": 183676,
"date_created": "2020-02-26T17:36:56",
"date_created_gmt": "2020-02-26T12:36:56",
"date_modified": "2020-02-26T17:36:56",
"date_modified_gmt": "2020-02-26T12:36:56",
"src": "https://megazar.ro/wp-content/uploads/2020/02/HTB1XJB8dAxz61VjSZFtq6yDSVXa9.jpg",
"name": "HTB1XJB8dAxz61VjSZFtq6yDSVXa9.jpg",
"alt": "",
"position": 0
}
],
"attributes": [
{
"id": 0,
"name": "Capacity",
"position": 1,
"visible": true,
"variation": true,
"options": [
"128GB",
"16GB",
"32GB",
"64GB"
]
}
],
"default_attributes": [],
"variations": [
183683,
183684,
183685,
183686
],
"grouped_products": [],
"menu_order": 0,
"meta_data": [],
"_links": {
"self": [
{
"href": "https://megazar.ro/wp-json/wc/v2/products/183682"
}
],
"collection": [
{
"href": "https://megazar.ro/wp-json/wc/v2/products"
}
]
}
}