We have parseNumber command that would convert a string to number
parseNumber "25" => 25
Now we need a command that would do the same to an array
so instead of
call compile "[1,2,3]"
it would just
parseArray "[1,2,3]" => [1,2,3]
Invalid string should return  in the same way parseNumber returns 0
Why different command? Call compile on a long string is very slow. It can freeze the game for a second. parseArray is expected to be a much faster dedicated command.
arrayToString would be great as well, one condition though, it will have to preserve the number precision when converting to string.
both needed for fast database operations