From 90f0b055c093d8194d219d49f082c47544cec770 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 18 Feb 2026 18:46:06 +0100 Subject: Add pretty config set function in json codec --- modules/codec-json/c++/json.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/codec-json/c++') diff --git a/modules/codec-json/c++/json.hpp b/modules/codec-json/c++/json.hpp index 7a971a0..9a785b4 100644 --- a/modules/codec-json/c++/json.hpp +++ b/modules/codec-json/c++/json.hpp @@ -122,7 +122,11 @@ public: } from_decode.get_buffer().read_advance(buff_v.read_offset()); - return void_t {}; + return make_void(); + } + + void set_pretty(bool pretty){ + cfg_.pretty = pretty; } }; } -- cgit v1.2.3