MCPcopy
hub / github.com/apache/devlake / ToJson

Function ToJson

backend/test/helper/json_helper.go:27–33  ·  view source on GitHub ↗

ToJson FIXME

(x any)

Source from the content-addressed store, hash-verified

25
26// ToJson FIXME
27func ToJson(x any) json.RawMessage {
28 b, err := json.Marshal(x)
29 if err != nil {
30 panic(err)
31 }
32 return b
33}
34
35func ToMap(x any) map[string]any {
36 b, err := json.Marshal(x)

Callers 3

CreateProjectMethod · 0.85
CastFunction · 0.85
sendHttpRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected