Skip to main content

Parser vs. Analysis Comparison

The Payload Parser was created to handle raw payloads sent by devices in order to extract measured variables or execute simple operations. The Analysis feature is more powerful — it includes access to Devices and external services, but there is a cost to run analyses. Payload Parser uses a simple JavaScript engine developed by TagoIO to be easy, lightweight, and free.

Comparison

FeaturesPayload ParserAnalysis
Code size limit64kb5MB
LanguageSimple JavaScript syntaxFull JavaScript and others
AsyncNoYes
SyncYesYes
Allows custom functionsYesYes
Allows external integrationNoYes
Allows requires/importsNo (only built-in functions)Yes
Console log or contextYes (Device Inspector)Yes
Timeout1,000 msCustom
Try/CatchNo — an error stops parsingYes
Predefined variablesmsgdevice, context, scope, result
Needs Action to trigger itNoYes
Cost of the serviceFreeCheck out /pricing

Notes

  • Payload Parser is intended for lightweight parsing and basic operations directly on incoming device payloads.
  • Analysis offers broader capabilities (access to devices, external services, larger code size, and more advanced error handling), suitable for more complex workflows.
  • Use the Payload Parser for simple, free parsing needs and Analysis when you need external integration, advanced JavaScript features, or persistence across executions.