Unknown how to get the JSON path for an unnamed json array?
Asked by
6 years ago Edited 6 years ago
right now I have this JSON.
02 | "kind" : "youtube#channelListResponse" , |
03 | "etag" : "\"XI7nbFXulYBIpL0ayR_gDh3eu1k/SGu14Buo6xWrEuoFga6kBy4vZBs\"" , |
10 | "kind" : "youtube#channel" , |
11 | "etag" : "\"XI7nbFXulYBIpL0ayR_gDh3eu1k/Gtb_6T1CwMLCWtseKBhUt_R95fg\"" , |
12 | "id" : "UC-lHJZR3Gqxm24_Vd_AJ5Yw" , |
14 | "viewCount" : "19368312391" , |
16 | "subscriberCount" : "73782288" , |
17 | "hiddenSubscriberCount" : false , |
on line 9 you see an unnamed array but I have no Idea how to get the path for that.
I used this website to get what I used below: http://jsonpathfinder.com/
While I tried many paths to get the subscriberCount. The one below is one of the ones I used and cannot figure out how to get the value of it.
1 | info.items [ 0 ] .statistics.subscriberCount |