Go to main content

unstringify

Take a string and return an expression.

UNSTRINGIFY

NAME

unstringify - Take a string and return an expression.

SYNOPSIS

unstringify(error: bool, string)

DESCRIPTION

unstringify is used to take an string and return an expression It can be used as a JSON un-stringnifier.

The optional parameter error is used to track error in the string. If error is false,

no error will be reported.

EXAMPLES

res={{a=unstringify('{  "a"   :   1, "b"   : "3"   }   ');
a; type(a);}}. return
res=\{"a":1,"b":"3"}context.

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

Written by Pierre Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.