Skip to main content

push_json_string

Function push_json_string 

Source
pub fn push_json_string(out: &mut String, v: &str)
Expand description

Append v to out as a JSON string literal (RFC 8259 escaping): the mandatory escapes (", \, and C0 controls, the common ones in short form), every other char — including all UTF-8 — passed through. Matches what serde_json emits for a string by default.