MCPcopy Create free account
hub / github.com/chanced/jsonptr / to_json_value

Method to_json_value

src/pointer.rs:139–141  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

137 /// Returns a `serde_json::Value` representation of this `Pointer`
138 #[cfg(feature = "json")]
139 pub fn to_json_value(&self) -> serde_json::Value {
140 serde_json::Value::String(self.0.to_string())
141 }
142
143 /// Returns the last `Token` in the `Pointer`.
144 pub fn back(&self) -> Option<Token> {

Callers 1

fromMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected