render json and xml