This command will return split a string at the delimiter and return it as a JSON array.
string split '|' 'one|two|three'Would return ["one","two","three"]
NOTE: To read content from standard input we use the -i - option.
echo 'one|two|three' | string -i - split '|'Would return ["one","two","three"]