Hi All,
I sent request and got response. In this response all products were listed up. I am trying to get all same variables and check they are same or not. For example I need to check all " installment" are “true”. How could I write script for that.
{
“result”: {
“data”: {
“categoryName”: null,
“products”: [
{
“code”: “at773”,
“name”: “2 Dal Beyaz Orkide Çiçeği”,
“price”: {
“current”: 79.99,
“total”: 79.99,
“currency”: “TL”,
“currencyCode”: “TRY”
},
“installment”: true,
“installmentText”: “6 x 13,33 TL Taksit Seçeneği”,
“productGroupId”: 1,
“variantCode”: “at773-1”,
“deliveryChargeMessage”: “Ücretsiz Teslimat”
},
{
“code”: “at1742”,
“name”: “Büyülü Aşk 25 Kırmızı Güller”,
“price”: {
“current”: 69.99,
“total”: 69.99,
“currency”: “TL”,
“currencyCode”: “TRY”
},
“installment”: true,
“installmentText”: “6 x 11,66 TL Taksit Seçeneği”,
“productGroupId”: 1,
“variantCode”: “at1742-1”,
“deliveryChargeMessage”: “Ücretsiz Teslimat”
},
{
“code”: “at727”,
“name”: “Akvaryum Vazoda 7 Kırmızı Gül”,
“price”: {
“current”: 39.99,
“total”: 39.99,
“currency”: “TL”,
“currencyCode”: “TRY”
},
“installment”: true,
“installmentText”: “6 x 6,66 TL Taksit Seçeneği”,
“productGroupId”: 1,
“variantCode”: “at727-1”,
“deliveryChargeMessage”: “Ücretsiz Teslimat”
},
{
“code”: “at192”,
“name”: “Phalaenopsis Orkide Çiçeği”,
“price”: {
“current”: 69.99,
“total”: 69.99,
“currency”: “TL”,
“currencyCode”: “TRY”
},
“installment”: true,
“installmentText”: “6 x 11,66 TL Taksit Seçeneği”,
“productGroupId”: 1,
“variantCode”: “at192-1”,
“deliveryChargeMessage”: “Ücretsiz Teslimat”
},