render json when pass array to resposne