ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
13 class ilJsonUtil {
14 
22  public static function encode($mixed, $suppress_native = false) {
23 
24  return json_encode($mixed);
25  }
26 
27 
35  public static function decode($json_notated_string, $suppress_native = false) {
36 
37  return json_decode($json_notated_string);
38  }
39 }
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...