in reply to json response

If you have a JSON string, you can translate it into a Perl structure using the from_json function which returns in your case a reference to a hash. Use Data::Dumper to inspect the structure and the retrieve the desired information:

use strict; use warnings; use JSON; use Data::Dumper; my $json = '{"name":"Jerry Stephin","country":"uk","email":"brabrabra" +}'; my $perl = from_json $json; print Dumper $perl; print "$_ $perl->{$_}\n" for qw( name email country );