pub unsafe extern "C" fn aws_byte_buf_append_json_string(
value: *const aws_json_value,
output: *mut aws_byte_buf
) -> c_int
Expand description
Appends a unformatted JSON string representation of the aws_json_value into the passed byte buffer. The byte buffer is expected to be already initialized so the function can append the JSON into it.
Note: The byte buffer will automatically have its size extended if the JSON string is over the byte buffer capacity AND the byte buffer has an allocator associated with it. If the byte buffer does not have an allocator associated and the JSON string is over capacity, AWS_OP_ERR will be returned.
Note: When you are finished with the aws_byte_buf, you must call “aws_byte_buf_clean_up_secure” to free the memory used, as it will NOT be called automatically. @param value The aws_json_value to format. @param output The destination for the JSON string @return AWS_OP_SUCCESS if the JSON string was allocated to output without any errors Will return AWS_OP_ERR if the value passed is not an aws_json_value or if there was an error appending the JSON into the byte buffer.