Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_msgpack
decode/1
Description
decode/1 is an Erlang function exported by "age_msgpack" module.
Decodes MessagePack data into Erlang's terms.
References
•encode/1
Parameters
Name
Type
Data
binary()
Input data in valid MessagePack format.
Result
Value or Type
any()
Returns deserialized terms.
Code Sample
> Message = <<147,175,83,116,114,105,110,103,32,118,97,108,117,101,46,46,46,130,162,102,49,203,64,41,0,0,0,0,0,0,162,102,50,164,84,101,115,116,10>>. > age_msgpack:decode(Message). ["String value...",#{f1 => 12.5,f2 => "Test"},10]