Allow use JSONObject as `inputData` parameter in predict methods