Skip to content

ToJSON

Returns the given value as a JSON string.

Syntax

Sequence.ToJSON
   ยท  [value]

Parameters

value
The value to convert to JSON.

Return Value

A single item sequence containing the JSON representation of the given value.

Remarks

This function can receive any value as the argument, including other sequences, which are evaluated in the context of the currently selected element.