Pass text list as java script parameter

I am consuming REST API which returns structure of type "text list" i want to pass that value in java script but i'm unable to pass "text list " It says Invalid Data Type  : 'Text' data type required instead of 'Text List'.

I'm unable to find list of text type for a javascript parameter

yeah , found my answer here

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.