]> git.proxmox.com Git - pve-http-server.git/blobdiff - PVE/APIServer/Formatter/HTML.pm
use canonical flag for json format
[pve-http-server.git] / PVE / APIServer / Formatter / HTML.pm
index 7a4f64fe25f13538d093232aa69eb8cf9534f949..743d0ad8165a16612c04cf27c3e7d95efb2590f5 100644 (file)
@@ -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);
     }