use JSON; my $json = '{ "o": "hai", "hurr": "derp" }'; my $data = decode_json( $json ); print $data->{o}, $/; # Prints "hai"