MCPcopy Create free account
hub / github.com/InferCore/InferCore / MarshalJSONMap

Function MarshalJSONMap

internal/requests/models.go:44–49  ·  view source on GitHub ↗

MarshalJSONMap encodes map[string]any to JSON bytes.

(m map[string]any)

Source from the content-addressed store, hash-verified

42
43// MarshalJSONMap encodes map[string]any to JSON bytes.
44func MarshalJSONMap(m map[string]any) ([]byte, error) {
45 if m == nil {
46 return []byte("{}"), nil
47 }
48 return json.Marshal(m)
49}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected