MCPcopy
hub / github.com/tidwall/sjson / Delete

Function Delete

sjson.go:486–488  ·  view source on GitHub ↗

Delete deletes a value from json for the specified path.

(json, path string)

Source from the content-addressed store, hash-verified

484
485// Delete deletes a value from json for the specified path.
486func Delete(json, path string) (string, error) {
487 return Set(json, path, dtype{})
488}
489
490// DeleteBytes deletes a value from json for the specified path.
491func DeleteBytes(json []byte, path string) ([]byte, error) {

Callers 2

testRawFunction · 0.85
TestDeleteIssue21Function · 0.85

Calls 1

SetFunction · 0.85

Tested by 2

testRawFunction · 0.68
TestDeleteIssue21Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…