Json()
Description
FUNCTION: json(<type>[, <value>])
Constructs a JSON value of the specified type. Supported types are: string, number, boolean, null, array, and object.
Examples
> say json(string, Hello)
You say, ““Hello””
> say json(number, 42)
You say, “42”
> say json(boolean, 1)
You say, “true”
> say json(null)
You say, “null”
> say json(array, 1 2 3)
You say, “[1,2,3]”