MCPcopy Create free account
hub / github.com/cloudwan/gohan / JSONString

Method JSONString

schema/resource.go:76–79  ·  view source on GitHub ↗

JSONString returns json string of the resource

()

Source from the content-addressed store, hash-verified

74
75//JSONString returns json string of the resource
76func (resource *Resource) JSONString() (string, error) {
77 bytes, err := json.Marshal(resource.Data())
78 return string(bytes), err
79}
80
81//Schema gets schema from resource
82func (resource *Resource) Schema() *Schema {

Callers 2

resourceMatchesFunction · 0.80
logEventMethod · 0.80

Calls 1

DataMethod · 0.95

Tested by 1

resourceMatchesFunction · 0.64