convert serialize string to array declaration