From ad9534d07f9f0e117198e3b3471eec3bc54b2020 Mon Sep 17 00:00:00 2001 From: George Tebrean <99179176+gtebrean@users.noreply.github.com> Date: Tue, 29 Aug 2023 00:26:56 +0300 Subject: [PATCH] Add json-pretty-print-enabled cli option (#1387) * add option Signed-off-by: gtebrean <99179176+gtebrean@users.noreply.github.com> * add option Signed-off-by: gtebrean <99179176+gtebrean@users.noreply.github.com> * Apply suggestions from code review Signed-off-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com> --------- Signed-off-by: gtebrean <99179176+gtebrean@users.noreply.github.com> Signed-off-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com> Co-authored-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com> --- docs/public-networks/reference/cli/options.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/docs/public-networks/reference/cli/options.md b/docs/public-networks/reference/cli/options.md index e169144f3ad..fb37c0e1244 100644 --- a/docs/public-networks/reference/cli/options.md +++ b/docs/public-networks/reference/cli/options.md @@ -3532,6 +3532,38 @@ rpc-ws-port="6174" The port (TCP) on which WebSocket JSON-RPC listens. The default is `8546`. You must [expose ports appropriately](../../how-to/connect/configure-ports.md). +### `json-pretty-print-enabled` + + + +# Syntax + +```bash +--json-pretty-print-enabled[=] +``` + +# Example + +```bash +--json-pretty-print-enabled=true +``` + +# Environment variable + +```bash +BESU_JSON_PRETTY_PRINT_ENABLED=true +``` + +# Configuration file + +```bash +json-pretty-print-enabled=true +``` + + + +Enables or disables the pretty-print output for HTTP and WebSocket responses. The default is `false`. + ### `security-module`