Convert array to csv string or to json

Hi. Is it possible to convert array to csv string or to json? also convert string or json ton array?