pub fn escape_json_pointer(s: &str) -> String
Escape a string for use as a JSON Pointer token segment (RFC 6901): ~ becomes ~0 and / becomes ~1.
~
~0
/
~1