MCPcopy Create free account
hub / github.com/cogentcore/core / StringJSON

Function StringJSON

base/reflectx/structs.go:232–234  ·  view source on GitHub ↗

StringJSON returns an indented JSON string representation of the given value for printing/debugging.

(v any)

Source from the content-addressed store, hash-verified

230// StringJSON returns an indented JSON string representation
231// of the given value for printing/debugging.
232func StringJSON(v any) string {
233 return string(errors.Log1(jsonx.WriteBytesIndent(v)))
234}

Callers 4

PropertiesStringMethod · 0.92
StringMethod · 0.92
StringMethod · 0.92
GetScreensMethod · 0.92

Calls 2

Log1Function · 0.92
WriteBytesIndentFunction · 0.92

Tested by

no test coverage detected