From 9ee701ca4af556659e8770659394c91a6e01fe6f Mon Sep 17 00:00:00 2001 From: xq2005 Date: Mon, 25 Jun 2012 14:03:30 +0000 Subject: [PATCH] fix the problem for json return format with imbedded list git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13162 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/xCAT-wsapi/xcatws.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/xCAT-wsapi/xcatws.cgi b/xCAT-server/xCAT-wsapi/xcatws.cgi index d70639991..22d95ff33 100755 --- a/xCAT-server/xCAT-wsapi/xcatws.cgi +++ b/xCAT-server/xCAT-wsapi/xcatws.cgi @@ -1765,9 +1765,9 @@ sub wrapData { } sub wrapJson { - my @data = shift; + my $data = shift; my $json; - $json->{'data'} = \@data; + $json->{'data'} = $data; addPageContent(to_json($json)); }