Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_tools
string_to_term/1
Description
string_to_term/1 is an Erlang function exported by "age_tools" module.
Converts an input string into Erlang terms. String must be terminated by single dot (".").
On error this function returns the reason into a tuple {error, ErrorInfo}
References
None
Parameters
Name
Type
Input
string()
Input string for interpretation.
Result
Value or Type
any()
Returns any terms on successful decoding of the input string.
Code Sample
> age_tools:string_to_term("[{a, 1}, 12.5]."). [{a,1},12.5]