ax(node): replace direct json.Unmarshal with package-local UnmarshalJSON wrapper
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

ParsePayload was calling encoding/json.Unmarshal directly, bypassing the
package-local UnmarshalJSON wrapper that already exists in bufpool.go.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 17:27:01 +01:00
parent 697394c1f4
commit 096d7e0137
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -122,7 +122,7 @@ func (message *Message) ParsePayload(target interface{}) error {
if message.Payload == nil {
return nil
}
return json.Unmarshal(message.Payload, target)
return UnmarshalJSON(message.Payload, target)
}
// --- Payload Types ---