]> git.proxmox.com Git - pve-http-server.git/commitdiff
use canonical flag for json format
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 16 Jan 2017 12:05:21 +0000 (13:05 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 16 Jan 2017 12:05:21 +0000 (13:05 +0100)
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);
     }