4 * This file is part of Psy Shell.
6 * (c) 2012-2018 Justin Hileman
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
15 * A static class to wrap JSON encoding/decoding with PsySH's default options.
20 * Encode a value as JSON.
27 public static function encode($val, $opt = 0)
29 $opt |= JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
31 return \json_encode($val, $opt);