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

Function SetRaw

sjson.go:457–459  ·  view source on GitHub ↗

SetRaw sets a raw json value for the specified path. This function works the same as Set except that the value is set as a raw block of json. This allows for setting premarshalled json objects.

(json, path, value string)

Source from the content-addressed store, hash-verified

455// This function works the same as Set except that the value is set as a
456// raw block of json. This allows for setting premarshalled json objects.
457func SetRaw(json, path, value string) (string, error) {
458 return SetRawOptions(json, path, value, nil)
459}
460
461// SetRawOptions sets a raw json value for the specified path with options.
462// This furnction works the same as SetOptions except that the value is set

Callers 3

testRawFunction · 0.85
TestRandomDataFunction · 0.85
TestIssue36Function · 0.85

Calls 1

SetRawOptionsFunction · 0.85

Tested by 3

testRawFunction · 0.68
TestRandomDataFunction · 0.68
TestIssue36Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…