MCPcopy Create free account
hub / github.com/go-json-experiment/json / FormatNilMapAsNull

Function FormatNilMapAsNull

alias.go:878–880  ·  view source on GitHub ↗

FormatNilMapAsNull specifies that a nil Go map should marshal as a JSON null instead of the default representation as an empty JSON object. This only affects marshaling and is ignored when unmarshaling.

(v bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestMarshalFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestMarshalFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…