# Lopping through $(item.transcript.JSON)

**URL:** <https://community.brightpattern.com/t/lopping-through-item-transcript-json/436>\
**Category:** Product Q&A\
**Tags:** scenario\
**Created:** [June 21, 2021, 1:35pm UTC](https://community.brightpattern.com/t/lopping-through-item-transcript-json/436 "2021-06-21T13:35:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tshebe](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@tshebe](https://community.brightpattern.com/u/tshebe)\
**Post date:** [June 21, 2021, 1:35pm UTC](https://community.brightpattern.com/t/lopping-through-item-transcript-json/436/1 "2021-06-21T13:35:40Z")

</div>

If I have set the output of $(item.transcript.JSON) to a vairable, is there a way to loop through the json object?

---

<div class="post-metadata">

**Author:** ![ivan.malyshkin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.brightpattern.com/ivan.malyshkin/32/8_2.png) [@ivan.malyshkin](https://community.brightpattern.com/u/ivan.malyshkin)\
**Post date:** [June 22, 2021, 12:03am UTC](https://community.brightpattern.com/t/lopping-through-item-transcript-json/436/2 "2021-06-22T00:03:03Z")

</div>

do you mean looping over the properties ? or the array inside the object ?

---

<div class="post-metadata">

**Author:** ![tshebe](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@tshebe](https://community.brightpattern.com/u/tshebe)\
**Post date:** [June 22, 2021, 6:48am UTC](https://community.brightpattern.com/t/lopping-through-item-transcript-json/436/3 "2021-06-22T06:48:18Z")

</div>

$(item.transcript.JSON) returns an array with JSON objects, I would like to loop through each object in that array.

---

<div class="post-metadata">

**Author:** ![ivan.malyshkin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.brightpattern.com/ivan.malyshkin/32/8_2.png) [@ivan.malyshkin](https://community.brightpattern.com/u/ivan.malyshkin)\
**Post date:** [June 24, 2021, 3:26am UTC](https://community.brightpattern.com/t/lopping-through-item-transcript-json/436/4 "2021-06-24T03:26:58Z")

</div>

this object wasn’t obtained via fetchURL, and the JSON contained is basically text.  
We most likely need a feature request for it. What is the complete use case for this ?

One workaround might be to make a simple web service somewhere which can basically get this JSON and return it back :). So it can be fetched using FetchURL block. And after that you can use GetNext to iterate over it

---

<div class="post-metadata">

**Author:** ![tshebe](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@tshebe](https://community.brightpattern.com/u/tshebe)\
**Post date:** [June 24, 2021, 1:58pm UTC](https://community.brightpattern.com/t/lopping-through-item-transcript-json/436/5 "2021-06-24T13:58:44Z")

</div>

Currently we making use of the web service however would like to go away from this as it introduces some delays.  
Can’t a scenario function be created which converts string to JSON

---

<div class="post-metadata">

**Author:** ![ivan.malyshkin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.brightpattern.com/ivan.malyshkin/32/8_2.png) [@ivan.malyshkin](https://community.brightpattern.com/u/ivan.malyshkin)\
**Post date:** [June 26, 2021, 12:30am UTC](https://community.brightpattern.com/t/lopping-through-item-transcript-json/436/6 "2021-06-26T00:30:13Z")

</div>

Please file a PER via [support.brightpattern.com](http://support.brightpattern.com), this is a good one.
