mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-13 14:39:28 +00:00
Call JSON::decode() explicitly.
This commit is contained in:
@@ -105,7 +105,7 @@ sub get {
|
||||
|
||||
# The resource should be represented as JSON, decode it.
|
||||
my $resource = eval {
|
||||
decode_json($self->response->content);
|
||||
JSON::decode_json($self->response->content);
|
||||
};
|
||||
if ( $EVAL_ERROR ) {
|
||||
warn sprintf "Error decoding resource: %s: %s",
|
||||
|
Reference in New Issue
Block a user