# Custom function in module receiving an array or list

**URL:** <https://community.wowza.com/t/custom-function-in-module-receiving-an-array-or-list/48093>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [February 9, 2017, 12:36pm UTC](https://community.wowza.com/t/custom-function-in-module-receiving-an-array-or-list/48093 "2017-02-09T12:36:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_Calle](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Juan\_Calle](https://community.wowza.com/u/Juan_Calle)\
**Post date:** [February 9, 2017, 12:36pm UTC](https://community.wowza.com/t/custom-function-in-module-receiving-an-array-or-list/48093/1 "2017-02-09T12:36:07Z")

</div>

Hi,

I have this custom function in my module

public void publishPlaylist(IClient client, RequestFunction function, AMFDataList params) {

One of the params I am passing is an array, I am confused on how to catch the array or as a list.

I tried to google this but I get tons of false positives.

---

<div class="post-metadata">

**Author:** ![Juan\_Calle](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Juan\_Calle](https://community.wowza.com/u/Juan_Calle)\
**Post date:** [February 9, 2017, 12:44pm UTC](https://community.wowza.com/t/custom-function-in-module-receiving-an-array-or-list/48093/2 "2017-02-09T12:44:19Z")

</div>

Sorry just found the examples on the server
