In computer programming, the most common usage of the term is in the context of message protocols, to differentiate the protocol overhead from the actual data. For example, a JSONweb service response might be:
{ "data": { "message": "Hello, world!" } }
The string Hello, world! is the payload of JSON message, while the rest is protocol overhead.
Security
In computer security, the payload is the part of the private user text which could also contain malware such as worms or viruses which performs the malicious action; deleting data, sending spam or encrypting data.[5] In addition to the payload, such malware also typically has overhead code aimed at simply spreading itself, or avoiding detection.
See also
Protocol data unit– Unit of information transmitted over a computer network
Service data unit– Data passed down to a lower layer of the OSI model, yet to be encapsulated