Skip to main content

escape_json_pointer

Function escape_json_pointer 

Source
pub fn escape_json_pointer(s: &str) -> String
Expand description

Escape a string for use as a JSON Pointer token segment (RFC 6901): ~ becomes ~0 and / becomes ~1.