use strict; use warnings; use Data::Dumper; use JSON; my $info = '"word1": 12345, "word2": true, "another_word": true, "something_else": ["Something", "Some 2", "http://www.website.com"], "more": "5"'; my $hash = from_json '{'.$info.'}'; print Dumper $hash;