MessagePack Messages
AMPS fully supports MessagePack messages, with the following implementation decisions to represent MessagePack messages in the AMPS type system.
See AMPS Data Types for information on the AMPS data types. Notice, in particular, that the AMPS expression language supports automatic type conversion, so while this table shows the default AMPS representation for a given MessagePack type, AMPS will convert a value as needed once the message has been parsed.
nil
NULL
bool
Boolean
int (all widths)
Integer
float (all widths)
Float
str (all widths)
String
bin (all widths)
String
array (all widths)
Array of AMPS values
map (all widths)
Nested AMPS values
ext (all widths)
String
Notice that AMPS does not attempt to interpret extension types, and instead represents them as arrays of bytes (a String in the AMPS type system).
Last updated