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
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}
An exception for terminatinating execution or to throw for unit testing.
JSON (Javascript Object Notation) functions with backward compatibility for PHP version < 5....
static encode($mixed, $suppress_native=false)
static decode($json_notated_string, $suppress_native=false)