AnsweredAssumed Answered

Get the count of Repeating Array Elements

Question asked by iyshwarya.x.gopalan.-nd984266 on Aug 14, 2018
Latest reply on Aug 15, 2018 by iyshwarya.x.gopalan.-nd984266

Hi All,

 

How do I count the number of repeating array elements in Json profile.

 

For eg.

 

{
"products":[
{

"Id":1234
"ProductNumber":54316,
"ProductId":73310128,
"title":"ABC",
"titles":[

],
"officialConsumerAnnounceDates":[

],
"episodes":[
{
"episodeProductId":182700,
"Number":1,
"title":"TBD",
"titles":[

]
},

{
"episodeProductId":182724,
"Number":2,

"title":"TBD",
"titles":[

]
},

]

}

]

}

for this Json profile, I want to count how many episodes are present.Here it is 2. The array episodes may or may not have elements.  

Can someone help me? Thanks in advance.

Outcomes