Home > Device Messaging > Parsing

Parsing from Body or Payload

In most cases, you will be pulling the content of the message from the body or payload. For REST type messages, this will be available for message sent with POST or PUT methods. For other protocols, you may only receive the payload. Once you have the body or payload, you need to determine the format of the content.

Parsing Options

When parsing from the body or payload of the message you have two options:

  • The content of the message could also be binary where the message is a stream of bytes.

  • The format of your message can be text where the content is a set of ASCII or UTF8 characters.

Each message type is parsed differently and text have the following strategies for extracting values: