Out of curiosity: what's motivating the transformation? Looks like a JSON literal for the input, not sure of the output. Are you trying to make a list of arguments for a function / script?
Note that array=( "one" "two" ) is a way to define a bash array with the literal items one and two -- the (s, the "s, &c aren't actually part of the array itself, they're just the definition syntax. Right now we don't know if you want parens and quotes in output, or you want an array defined the same way it would be if you had used that syntax.
If the actual situation is that you have a JSON array and you want to populate a native bash array from it, that's a different and simpler question (at least, as long as you're willing to use tools like jq that understand JSON).
array=( "one" "two" )is a way to define a bash array with the literal itemsoneandtwo-- the(s, the"s, &c aren't actually part of the array itself, they're just the definition syntax. Right now we don't know if you want parens and quotes in output, or you want an array defined the same way it would be if you had used that syntax.jqthat understand JSON).