This documentation supports the 11.2 version of BMC Discovery.

To view an earlier version of the product, select the version from the Product version menu.

json.decode

json.decode(value)


Decodes a JSON encoded string and returns a structure containing a number, boolean, null, string, table or list including nested structures.  


Where value is a JSON encoded string. If value is not a string or is an invalid JSON encoded string returns none.

For example the following code fragment sets decoded to table(args := '-l /clusters/cluster-1/exports/storage-views')

decoded := json.decode('{"args":"-l /clusters/cluster-1/exports/storage-views"}');
Was this page helpful? Yes No Submitting... Thank you

Comments