Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

$ToJson

Converts an OtterScript value to JSON.

Script usage:

$ToJson(data)

Parameters:

NameDescription
dataThe data to encode as JSON.

Example:

$ToJson(%(abc: @(1, 2, 3), def: true))

$ToJson(@(1, 2, 3, 4, five, 6, 7, 8, 9))

$ToJson(>>abc
123>>)