MCPcopy Create free account
hub / github.com/compozy/agh / normalizeRawJSON

Function normalizeRawJSON

internal/task/manager.go:4128–4137  ·  view source on GitHub ↗
(raw json.RawMessage)

Source from the content-addressed store, hash-verified

4126}
4127
4128func normalizeRawJSON(raw json.RawMessage) json.RawMessage {
4129 if len(raw) == 0 {
4130 return nil
4131 }
4132 trimmed := bytes.TrimSpace(raw)
4133 if len(trimmed) == 0 {
4134 return nil
4135 }
4136 return json.RawMessage(trimmed)
4137}
4138
4139func cloneRawJSON(raw json.RawMessage) json.RawMessage {
4140 if len(raw) == 0 {

Calls

no outgoing calls