batch prediction to json