cobvert response to array