Skip to content

Converts a JSON value to a JSON-encoded string.

func.json_string(get_column(table, 'data'))
func.json_string(get_column(table, 'json_val'))
┌───────────┐
'{"a":1}'
└───────────┘
JSON_STRING(<data>)
SELECT JSON_STRING(PARSE_JSON('{"a": 1}'));
┌─────────┐
│ {"a":1} │
└─────────┘