parse JSON
converts a JSON string to a data structure
(string x, boolean lenient) -> any
Returns a value representing the encoded content of given JSON string x
.
Returns nil
if x
is nil
.
Parameters
Name | Type | Description |
---|---|---|
x |
string | The JSON string to parse |
lenient |
boolean |
If If |