Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_json
decode/1
Description
decode/1 is an Erlang function exported by "" module.
Decodes JSON into Erlang terms.
References
•encode/1
•string_to_items/1
•file_to_terms/1
Parameters
Name
Type
Input
string()
Input string in JSON format.
Result
Value or Type
any()
Returns Erlang terms
Code Sample
> age_json:decode("{\"a\":1,\"b\":\"Test\",\"c\":[12.5,{\"d\":null,\"e\":true}]}"). #{ a => 1, b => "Test", c => [ 12.5, #{ d => null, e => true } ] }