From: Arran Cudbard-Bell Date: Thu, 8 Dec 2022 17:23:18 +0000 (-0600) Subject: json: Set the default output mode correctly X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce37e47a9d35010d95a6e04e28babcc62f332b8e;p=thirdparty%2Ffreeradius-server.git json: Set the default output mode correctly --- diff --git a/src/lib/json/json.c b/src/lib/json/json.c index 42ee5f3af10..b8453b67f5a 100644 --- a/src/lib/json/json.c +++ b/src/lib/json/json.c @@ -41,6 +41,7 @@ size_t fr_json_format_table_len = NUM_ELEMENTS(fr_json_format_table); static fr_json_format_t const default_json_format = { .attr = { .prefix = NULL }, .value = { .value_as_array = true }, + .output_mode = JSON_MODE_OBJECT }; static CONF_PARSER const json_format_attr_config[] = {