How to parse string?

version: 23w31a wanna parse string and get output in the array like this {array:[ "h","e","l","l","o" ]} if there is a way, or a datapack??

Continue to help post