Skip to main content

PRINT_JSON

Deprecated version

This document refers to a deprecated version of the RQL programming language.

Please go here for documentation related to the latest supported version.

Returns a string with the JSON representation of the data.

Syntax
PRINT_JSON(<expression>)

Example
PRINT_JSON((a: 1, b: "One")) // Result: {"a":1,"b":"One"}
PRINT_JSON(null) // Result: "null"
PRINT_JSON(
(
a: 1,
b: ["a", "b"],
c: null
)
) // Result: {"a":1,"b":["a","b"],"c":null}