ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 36 of file class.ilJsonUtil.php.

Referenced by ilPageQuestionProcessor\saveQuestionAnswer().

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

◆ encode()


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