MarshalJSONMap encodes map[string]any to JSON bytes.
(m map[string]any)
| 42 | |
| 43 | // MarshalJSONMap encodes map[string]any to JSON bytes. |
| 44 | func MarshalJSONMap(m map[string]any) ([]byte, error) { |
| 45 | if m == nil { |
| 46 | return []byte("{}"), nil |
| 47 | } |
| 48 | return json.Marshal(m) |
| 49 | } |
nothing calls this directly
no outgoing calls
no test coverage detected