MCPcopy Index your code
hub / github.com/ent/ent / marshalArg

Function marshalArg

dialect/sql/sqljson/sqljson.go:722–727  ·  view source on GitHub ↗

marshalArg stringifies the given argument to a valid JSON document.

(arg any)

Source from the content-addressed store, hash-verified

720
721// marshalArg stringifies the given argument to a valid JSON document.
722func marshalArg(arg any) any {
723 if buf, err := json.Marshal(arg); err == nil {
724 arg = string(buf)
725 }
726 return arg
727}

Callers 6

ValueContainsFunction · 0.85
AppendMethod · 0.85
appendArgMethod · 0.85
marshalArgsMethod · 0.85
appendArgMethod · 0.85
AppendMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…