json.decode

json.decode(value)

Decodes a JSON encoded string and returns a structure containing a 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