[DRAFT]This page is not published. Only visible in development mode.
json module · Function

json::pretty

Serialize a JSON value to a pretty-printed string with indentation.

Syntax

RQL

Parameters

NameTypeDescription
valueJSONA JSON value (from json::array or json::object)

Return Value

Returns a utf8 string containing the indented JSON representation.

Examples

Pretty-print JSON

$ Pretty-print JSON
$ ctrl+enter to run

Related Functions