diff --git a/lib/WebGUI/Shop/ShipDriver.pm b/lib/WebGUI/Shop/ShipDriver.pm index fe4ae6f6c..aa517a5ca 100644 --- a/lib/WebGUI/Shop/ShipDriver.pm +++ b/lib/WebGUI/Shop/ShipDriver.pm @@ -158,7 +158,7 @@ sub get { $opts = {}; } else { - $opts = JSON::from_json($opts); + $opts = decode_json($opts); } if (defined $param) { return $opts->{$param}; @@ -303,7 +303,7 @@ sub update { my $options = shift || {}; WebGUI::Error::InvalidParam->throw(error => 'update was not sent a hashref of options to store in the database') unless ref $options eq 'HASH' and scalar keys %{ $options }; - my $jsonOptions = to_json($options); + my $jsonOptions = encode_json($options); $options{id $self} = $jsonOptions; $self->session->db->write('update shipper set options=? where shipperId=?', [$jsonOptions, $self->getId]); return undef;