diff --git a/xCAT-server/xCAT-wsapi/xcatws.cgi b/xCAT-server/xCAT-wsapi/xcatws.cgi index 25e932469..a4de8d5df 100755 --- a/xCAT-server/xCAT-wsapi/xcatws.cgi +++ b/xCAT-server/xCAT-wsapi/xcatws.cgi @@ -1829,7 +1829,7 @@ sub wrapJson { my $data = shift; my $json; $json->{'data'} = $data; - addPageContent(to_json($json)); + addPageContent(JSON::to_json($json)); } sub wrapHtml {