pub unsafe extern "C" fn yyjson_read(
dat: *const c_char,
len: usize,
flg: yyjson_read_flag,
) -> *mut yyjson_docExpand description
Read a JSON string.
This function is thread-safe.
@param dat The JSON data (UTF-8 without BOM), null-terminator is not required.
If this parameter is NULL, the function will fail and return NULL.
@param len The length of JSON data in bytes.
If this parameter is 0, the function will fail and return NULL.
@param flg The JSON read options.
Multiple options can be combined with | operator. 0 means no options.
@return A new JSON document, or NULL if an error occurs.
When it’s no longer needed, it should be freed with yyjson_doc_free().