
Announcements
Hi,
I have 2 strings being returned from another process which is basically in this format
"completed","email","role"
"2021-02-17 03:15:36","d@d.com","SIGNER"
If I use the split command with "," as the separator I get this
[
"\"completed\"",
"\"email\"",
"\"role\"""\n\"2021-02-17 03:15:36\"",
"\"d@d.com\"",
"\"SIGNER\""
]
How can i get this into an array that is basically in this format
completed : 2021-02-17 03:15:36
email : d@d.com
role: SIGNER
@Dhiran your returned strings are in sep action if not please make it seperately. Split first by ',' and second also by ','. Now you will have two arrays here. Map your array elements in one compose
Key : value formats.
Output:
Please 'Thumbs Up' the posts that helped you and 'Mark as Solution' if my post answered your question.