Function regorust::regoAddDataJSONFile

source ·
pub unsafe extern "C" fn regoAddDataJSONFile(
    rego: *mut regoInterpreter,
    path: *const c_char,
) -> regoEnum
Expand description

@brief Adds a base document from the file at the specified path. @details The file should contain a single JSON object. The object will be parsed and merged with the interpreter’s base document. @par If an error code is returned, more error information can be obtained by calling ::regoError. @param rego The interpreter. @param path The path to the JSON file. @return REGO_OK if successful, REGO_ERROR otherwise.