$resultwhich has the following data $VAR1 = { 'serviceIdList' => { 'serviceId' => [ '3', '4' ] } }; Now how i got that is by executing this statement print Dumper $result; #### $VAR1 = { 'serviceType' => '9', 'maxNrOfRules' => '0', 'defaultRule' => '0' };