prediction field in JSON response for api