Support for converting the array to json from controller response