MCPcopy Create free account
hub / github.com/LumaAI-API/Luma-API / GetJsonString

Function GetJsonString

common/utils.go:146–152  ·  view source on GitHub ↗
(data any)

Source from the content-addressed store, hash-verified

144}
145
146func GetJsonString(data any) string {
147 if data == nil {
148 return ""
149 }
150 b, _ := json.Marshal(data)
151 return string(b)
152}
153
154func UnmarshalBodyReusable(c *gin.Context, v any) error {
155 requestBody, err := GetRequestBody(c)

Callers 1

ChatCompletionsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected