From cd64441da1df1409761a19e83543cd87cac32e66 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 16 Jan 2017 13:05:21 +0100 Subject: [PATCH] use canonical flag for json format --- PVE/APIServer/Formatter/HTML.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/APIServer/Formatter/HTML.pm b/PVE/APIServer/Formatter/HTML.pm index 7a4f64f..743d0ad 100644 --- a/PVE/APIServer/Formatter/HTML.pm +++ b/PVE/APIServer/Formatter/HTML.pm @@ -235,13 +235,13 @@ PVE::APIServer::Formatter::register_formatter($portal_format, sub { } else { - my $json = to_json($data, {allow_nonref => 1, pretty => 1}); + my $json = to_json($data, {allow_nonref => 1, pretty => 1, canonical => 1}); $html .= $doc->el(tag => 'pre', text => $json); } } else { - my $json = to_json($data, {allow_nonref => 1, pretty => 1}); + my $json = to_json($data, {allow_nonref => 1, pretty => 1, canonical => 1}); $html .= $doc->el(tag => 'pre', text => $json); } -- 2.39.2