Hello,
I am working on a custom activity where i use some API and get the following response: response.content = [4,[“XYZ”,“PQR”,“ABC”,“TUV”],null,[[“XYZ”,“Description of XYZ”],[“PQR”,“Description of PQR”],[“ABC”,“Description of ABC”],[“TUV”,“Description of TUV”]]]
I want to extract the output in three forms:
Number of Codes matched : 4
Codes matched : in form of array {“XYZ”,“PQR”,“ABC”,“TUV”}
Code Description : In form of Data Table or Array
Is there any way to get that string data in above format.
Looking forward for your response
Thanks & Regards
RM
the response.content is in form of a string.I need to strore the codes() in an array
Hi @RishabhMathur,
If you an API response in json you to try “Deserialize JSON” or “Deserialize JSON Array” activities to get data from json files. Otherwise if its an array try using string methods.
I do have JSON as output and I am first storing it in a variable then using deserialize activity. But couldn’t figure out the next step. For temporary i am splitting it.