JSON.Decode (gb.util.web)

Static Function Decode ( Value As String [ , UseNull As Boolean ] ) As Variant

Decodes a JSON string and returns it as a Gambas value.

Depuis 3.5

If the UseNull argument is TRUE, then null JSON values will be represented by the JSON.Null property.

That allows to make the difference between a property that is not set and a property having the null value.

Depuis 3.21

If the UseNull argument is TRUE, then undefined JSON values will be represented by the JSON.Undefined property.