use to_json and from_json in more places instead of encode_json and decode_json
This commit is contained in:
parent
b249b98a86
commit
315ce0941f
5 changed files with 11 additions and 11 deletions
|
|
@ -2,7 +2,7 @@ package WebGUI::Content::AssetManager;
|
|||
|
||||
use strict;
|
||||
|
||||
use JSON qw( decode_json encode_json );
|
||||
use JSON qw( from_json to_json );
|
||||
use URI;
|
||||
use WebGUI::Form;
|
||||
use WebGUI::Paginator;
|
||||
|
|
@ -221,7 +221,7 @@ sub getMoreMenu {
|
|||
};
|
||||
}
|
||||
|
||||
return encode_json \@more_fields;
|
||||
return to_json \@more_fields;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
@ -309,7 +309,7 @@ sub www_ajaxGetManagerPage {
|
|||
|
||||
$session->http->setMimeType( 'application/json' );
|
||||
|
||||
return encode_json( $assetInfo );
|
||||
return to_json( $assetInfo );
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -454,7 +454,7 @@ a:visited { color: '.$form->get("visitedLinkColor").'; }
|
|||
description => $i18n->get("We welcome your feedback."),
|
||||
acknowledgement => $i18n->get("Thanks for for your interest in ^c;. We will review your message shortly."),
|
||||
mailData => 1,
|
||||
fieldConfiguration => JSON::encode_json(\@fieldConfig),
|
||||
fieldConfiguration => JSON::to_json(\@fieldConfig),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue