use utf8; use JSON qw( from_json ); my $json = q({ "cat" : "text – abcd" }); my $data = from_json($json);