Skip to content

to_string

Signature

to_string(any)

Description

The JSON encoded value of the given argument.

Examples

to_string(`2`) == '2'
to_string('foobar') == 'foobar'
to_string(null) == 'null'
to_string({bar:'bam',foo:'baz'}) == '{"bar":"bam","foo":"baz"}'