Skip to main content

json_string_encode

Function json_string_encode 

Source
pub fn json_string_encode(payload: &str) -> String
Expand description

JSON string encoding — wraps the payload in a JSON string with proper escaping.

Context: ONLY safe when the target parser performs JSON decoding.