Permalink
Browse files

Use JSON::MaybeXS

  • Loading branch information...
labrown committed Jun 23, 2015
1 parent e616173 commit 6f7ffcc7059b0838ffe843d5ca85516a567cace0
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/dpath
View
2 bin/dpath 100755 → 100644
@@ -277,7 +277,7 @@ sub _write_out
}
elsif ($outtype eq "json")
{
- eval "use JSON -convert_blessed_universally";
+ use JSON::MaybeXS;
my $json = JSON->new->allow_nonref->pretty->allow_blessed->convert_blessed;
$output .= $json->encode($resultlist);
}

0 comments on commit 6f7ffcc

Please sign in to comment.