MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / MapToJsonStr

Function MapToJsonStr

common/str.go:27–33  ·  view source on GitHub ↗
(m map[string]interface{})

Source from the content-addressed store, hash-verified

25}
26
27func MapToJsonStr(m map[string]interface{}) string {
28 bytes, err := json.Marshal(m)
29 if err != nil {
30 return ""
31 }
32 return string(bytes)
33}
34
35func StrToMap(str string) (map[string]interface{}, error) {
36 m := make(map[string]interface{})

Callers 3

formatUserLogsFunction · 0.92
RecordErrorLogFunction · 0.92
RecordConsumeLogFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected