json

json

json

Function

Serialize the value to a standard JSON string.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueAnyNoNullThe value to serialize.

Return value

TypeDescription
StringReturns a JSON string.

Example

Notes

  • Strings will be wrapped in JSON quotes and escapes.
  • Standard JSON does not have a empty type, empty will be serialized into JSON null.