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

Function decodeJSON

internal/network/validate.go:956–962  ·  view source on GitHub ↗
(raw json.RawMessage, target any)

Source from the content-addressed store, hash-verified

954}
955
956func decodeJSON(raw json.RawMessage, target any) error {
957 decoder := json.NewDecoder(bytes.NewReader(raw))
958 if err := decoder.Decode(target); err != nil {
959 return err
960 }
961 return nil
962}
963
964func cloneRawMessage(raw json.RawMessage) json.RawMessage {
965 if raw == nil {

Callers 1

decodeNormalizedBodyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected