ptr

Function ptr 

Source
pub fn ptr<'a>(value: &'a Value, pointer: &str) -> Option<&'a Value>
Expand description

Lookup a JSON value by JSON Pointer (RFC 6901).

  • empty string "" returns the input value
  • each path segment is separated by /
  • escape rules in segments: ~1/, ~0~
  • returns None if the path cannot be followed