Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ MarshalJSON
Method
MarshalJSON
coderd/rbac/roles.go:112–114 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
110
}
111
112
func
(r *RoleIdentifier) MarshalJSON() ([]byte, error) {
113
return
json.Marshal(r.String())
114
}
115
116
func
(r *RoleIdentifier) UnmarshalJSON(data []byte) error {
117
var
str string
Callers
nothing calls this directly
Calls
2
String
Method · 0.95
Marshal
Method · 0.45
Tested by
no test coverage detected