#[no_mangle]
pub unsafe extern "C" fn yarray_get_json(
array: *const Branch,
txn: *const Transaction,
index: u32,
) -> *mut c_char
Expand description
Returns a UTF-8 encoded, NULL-terminated JSON string representing a value stored in a current YArray under a given index.
This method will return NULL
pointer if value was outside the bound of an array or couldn’t be
serialized into JSON string.
This method will also try to serialize complex types that don’t have native JSON representation like YMap, YArray, YText etc. in such cases their contents will be materialized into JSON values.
A string returned should be eventually released using ystring_destroy function.