public static function jsonEncode($data, array $context = [])
    {
        $defaults = [
            'json_encode_options' => defined('JSON_UNESCAPED_UNICODE')
                ? JSON_UNESCAPED_UNICODE
                : 0,
        ];

        return (new JsonEncoder())->encode($data, 'json', array_replace($defaults, $context));
    }
public static function jsonEncode($data, array $context = [])
    {
        $defaults = [
            'json_encode_options' => defined('JSON_UNESCAPED_UNICODE')
                ? JSON_UNESCAPED_UNICODE
                : 0,
        ];

        return (new JsonEncoder())->encode($data, 'json', array_replace($defaults, $context));
    }
public static function jsonEncode ( $ data , array $ context = [ ] ) { $ defaults = [ 'json_encode_options' => defined ( 'JSON_UNESCAPED_UNICODE' ) ? JSON_UNESCAPED_UNICODE : 0 , ] ; return ( new JsonEncoder ( ) ) -> encode ( $ data , 'json' , array_replace ( $ defaults , $ context ) ) ; }
json encode.
json encode .