mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-07-01 17:44:40 +00:00
use canonical flag for json format
This commit is contained in:
parent
555a5ab311
commit
cd64441da1
@ -235,13 +235,13 @@ PVE::APIServer::Formatter::register_formatter($portal_format, sub {
|
|||||||
|
|
||||||
} else {
|
} 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);
|
$html .= $doc->el(tag => 'pre', text => $json);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} 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);
|
$html .= $doc->el(tag => 'pre', text => $json);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user