Replaced all decode/encode_json method calls with to/from_json method
calls now that we've licked the Survey encoding bug (wrong mysql db field type)
This commit is contained in:
parent
c4eb4e3b57
commit
a1033aeaa2
3 changed files with 9 additions and 12 deletions
|
|
@ -61,7 +61,7 @@ sub new {
|
|||
my $json = shift;
|
||||
my $log = shift;
|
||||
my $survey = shift;
|
||||
my $temp = decode_json($json) if defined $json;
|
||||
my $temp = from_json($json) if defined $json;
|
||||
my $self = defined $temp ? $temp : {};
|
||||
$self->{survey} = $survey;
|
||||
$self->{log} = $log;
|
||||
|
|
@ -153,7 +153,7 @@ sub freeze {
|
|||
my %temp = %{$self};
|
||||
delete $temp{log};
|
||||
delete $temp{survey};
|
||||
return encode_json( \%temp );
|
||||
return to_json( \%temp );
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue