ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilJsonUtil Class Reference

JSON (Javascript Object Notation) functions with backward compatibility for PHP version < 5.2. More...

+ Collaboration diagram for ilJsonUtil:

Static Public Member Functions

static encode ($mixed, $suppress_native=false)
 
static decode ($json_notated_string, $suppress_native=false)
 

Detailed Description

JSON (Javascript Object Notation) functions with backward compatibility for PHP version < 5.2.

Author
Jan Posselt jposs.nosp@m.elt@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Version
$Id$
Deprecated:
use PHP native functions

Definition at line 13 of file class.ilJsonUtil.php.

Member Function Documentation

◆ decode()

static ilJsonUtil::decode (   $json_notated_string,
  $suppress_native = false 
)
static
Parameters
$json_notated_string
bool$suppress_native
Returns
mixed
Deprecated:
use json_decode instead

Definition at line 35 of file class.ilJsonUtil.php.

Referenced by ilPageQuestionProcessor\saveQuestionAnswer().

35  {
36 
37  return json_decode($json_notated_string);
38  }
+ Here is the caller graph for this function:

◆ encode()

static ilJsonUtil::encode (   $mixed,
  $suppress_native = false 
)
static
Parameters
$mixed
bool$suppress_native
Returns
string
Deprecated:
use json_encode instead

Definition at line 22 of file class.ilJsonUtil.php.

Referenced by ilTermsOfServiceJsonResponse\__toString(), ilCloudPluginFileTreeGUI\addDropZone(), ilCloudPluginCreateFolderGUI\asyncCreateFolder(), ilCloudPluginDeleteGUI\asyncDeleteItem(), ilObjCloudGUI\asyncGetBlock(), ilCloudPluginUploadGUI\asyncUploadFile(), ilCloudPluginDeleteGUI\cancel(), ilCloudPluginCreateFolderGUI\createFolder(), ilCloudPluginDeleteGUI\deleteItem(), ilAccountRegistrationGUI\doProfileAutoComplete(), ilPublicUserProfileGUI\doProfileAutoComplete(), ilRepositorySearchGUI\doUserAutoComplete(), ilStudyProgrammeExpandableProgressListGUI\fillTemplate(), ilChatroomBlockGUI\getChatroomSelectionList(), ilFileUploadGUI\getHTML(), ilAccordionGUI\getHTML(), ilAdvancedSelectionListGUI\getHTML(), ilDataSet\getJsonRepresentation(), ilRoleAutoComplete\getList(), ilSearchAutoComplete\getList(), ilRoleAutoComplete\getListByObject(), ilSearchAutoComplete\getLuceneList(), ilOnScreenChatMenuGUI\getMainMenuHTML(), ilOverlayGUI\getOnLoadCode(), ilPreviewGUI\getPreviewHTML(), ilMailFormGUI\getTemplateDataById(), ilObjWikiGUI\getUserHTMLExportProgressObject(), ilBuddySystemGUI\initializeFrontend(), ilOnScreenChatGUI\initializeFrontend(), ilPreviewGUI\initPreview(), ilWikiPageGUI\insertWikiLinkAC(), ilMDEditorGUI\keywordAutocomplete(), ilBlogPostingGUI\keywordAutocomplete(), ilNewsTimelineGUI\loadMore(), ilMailTemplateSelectInputGUI\render(), ilUserAutoComplete\setResultField(), ilNewsTimelineGUI\show(), ilLanguage\toJSMap(), ilCloudPluginUploadGUI\uploadFiles(), and ilObjFileGUI\uploadFiles().

22  {
23 
24  return json_encode($mixed);
25  }
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: