DB
FunctionsJSON

to_json

Converts an input value into its JSON representation, preserving JSON inputs and encoding non-JSON scalar values using NYXDB's canonical mapping.

to_json(…) → JSON

Kind · scalar

Converts an input value into its JSON representation, preserving JSON inputs and encoding non-JSON scalar values using NYXDB's canonical mapping.

Part of the JSON family.