comp • gb.util.web • json • encode

JSON.Encode (gb.util.web)

Static Function Encode ( Value As Variant ) As String

Encodes a Gambas value into a JSON string and returns it.

Gambas dates are converted into their string representation, as JSON has no date element.