ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilJsonUtil.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
14 {
15 
23  public static function encode($mixed, $suppress_native = false)
24  {
25  return json_encode($mixed);
26  }
27 
28 
36  public static function decode($json_notated_string, $suppress_native = false)
37  {
38  return json_decode($json_notated_string);
39  }
40 }
static encode($mixed, $suppress_native=false)
static decode($json_notated_string, $suppress_native=false)
JSON (Javascript Object Notation) functions with backward compatibility for PHP version < 5...