Function regorust::regoAddDataJSON
source · pub unsafe extern "C" fn regoAddDataJSON(
rego: *mut regoInterpreter,
contents: *const c_char,
) -> regoEnumExpand description
@brief Adds a base document from the specified string. @details The string 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 contents The contents of the JSON object. @return REGO_OK if successful, REGO_ERROR otherwise.