Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_json
string_to_items/1
Description
string_to_items/1 is an Erlang function exported by "" module.
Decodes JSON object into Erlang list with tuples in format {atom(), any()}.
Please take into consideration that this function works only with one JSON object.
References
•decode/1
•items_to_string/1
Parameters
Name
Type
Input
string()
Input string in JSON format.
Result
Value or Type
list()
Returns list of tuples.
Code Sample
> age_json:string_to_items("{\"a\":1,\"b\":\"Test\"}"). [ {a, 1}, {b, "Test"} ]