I've been beating my head against the wall trying to loop through this json file.
when I console log this it says that the Response is an Object, data is an object, saleItemCategories is an array, which has four objects the first being vehicles which is an array of item objects.
Basically I am trying to get the various values from these item objects. At this point I'm just looking for help drilling down to this level.
"Response":{
"data":{
"vendorHash":2668878854,
"nextRefreshDate":"9999-12-31T23:59:59.999Z",
"enabled":true,
"saleItemCategories":[
{
"categoryIndex":2,
"categoryTitle":"Vehicles",
"saleItems":[
{
"item":{
"itemHash":3645385954,
"bindStatus":0,
"isEquipped":false,
"itemInstanceId":"0",
"itemLevel":0,
"stackSize":1,
"qualityLevel":0,
"stats":[
{
"statHash":3017642079,
"value":35,
"maximumValue":100
}
],
"primaryStat":{
"statHash":1501155019,
"value":150,
"maximumValue":0
},
"canEquip":true,
"equipRequiredLevel":0,
"unlockFlagHashRequiredToEquip":2166136261,
"cannotEquipReason":0,
"damageType":0,
"damageTypeHash":0,
"damageTypeNodeIndex":-1,
"damageTypeStepIndex":-1,
"progression":{
"dailyProgress":0,
"weeklyProgress":0,
"currentProgress":0,
"level":0,
"step":0,
"progressToNextLevel":0,
"nextLevelAt":0,
"progressionHash":0
},
"talentGridHash":2064730449,
"nodes":[
{
"isActivated":true,
"stepIndex":0,
"state":10,
"hidden":false,
"nodeHash":0
}
],
"useCustomDyes":true,
"artRegions":{
},
"isEquipment":true,
"isGridComplete":false,
"perks":[
{
"iconPath":"/common/destiny_content/icons/b65252b2007607955aa1fc3026154c8c.png",
"perkHash":4091143788,
"isActive":true
}
],
"location":3,
"transferStatus":0,
"locked":false,
"lockable":false,
"objectives":[
],
"state":0
},
"vendorItemIndex":30,
"itemStatus":0,
"costs":[
{
"itemHash":2534352370,
"value":175
}
],
"requiredUnlockFlags":[
],
"unlockStatuses":[
],
"failureIndexes":[
]
},
I have tried looping through each Response as object, then for each data as object, then I tried looping through the saleItemCategories array, but this is usually where it breaks