Skip to main content

write_map_iter_at

Function write_map_iter_at 

Source
pub fn write_map_iter_at<'a, T, I>(
    json: &mut Vec<u8>,
    path: &[PathSegment<'_>],
    iter: I,
) -> Result<(), Error>
where T: ToJsonBytes + 'a, I: IntoIterator<Item = (&'a str, &'a T)>,
Expand description

Encode a string-key map as a JSON object and replace the value at path.

This is a closed map write (full object replace), not a per-key open merge.