]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
json: Set the default output mode correctly
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 8 Dec 2022 17:23:18 +0000 (11:23 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 8 Dec 2022 17:23:18 +0000 (11:23 -0600)
src/lib/json/json.c

index 42ee5f3af10c9da313e1664683da356a194a1058..b8453b67f5a9717bba9d7a3ca5336121b4cc0ce4 100644 (file)
@@ -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[] = {