Method Standards.JSON.decode()


Method decode

array|mapping|string|float|int|object decode(string s, void|int flags)

Description

Decodes a JSON string.

Parameter flags

The flag NO_OBJECTS can be used to output 1, 0 and UNDEFINED instead of Val.true, Val.false and Val.null.

Throws

Throws an exception in case the data contained in s is not valid JSON.