in reply to Convert JSON to Array in CGI

Update: On reflection, you are actually POSTing JSON. It's the use of Dumper which confused me - why not just print the scalar?

use JSON; my $json = '{ "name" : "dsfsdfs", "age" : "23", "city" : "vvvvv", "state" : "aaaa" }'; my $hashref = decode_json $json; my @array = %$hashref; print join ', ', @array;

You haven't said what you expect the "array format" to look like. Therefore I'll just guess that you want the keys and the values.

my @array = %$params;

That should be all you need. See perldoc perlref for info on references. BTW, what you've asked has nothing to do with JSON whatsoever.