pub unsafe extern "C" fn aws_json_value_new_string(
allocator: *mut aws_allocator,
string: aws_byte_cursor
) -> *mut aws_json_value
Expand description
Creates a new string aws_json_value with the given string and returns a pointer to it.
Note: You will need to free the memory for the aws_json_value using aws_json_destroy on the aws_json_value or on the object/array containing the aws_json_value. @param string A byte pointer to the string you want to store in the aws_json_value @param allocator The allocator to use when creating the value @return A new string aws_json_value