protected function compressInlineJsonCode($json)
    {
        if (!($json = (string) $json)) {
            return $json; // Nothing to do.
        }
        if (($compressed_json = \WebSharks\JsMinifier\Core::compress($json))) {
            return '/*<![CDATA[*/'.$compressed_json.'/*]]>*/';
        }
        return $json;
    }
protected function compressInlineJsonCode($json)
    {
        if (!($json = (string) $json)) {
            return $json; // Nothing to do.
        }
        if (($compressed_json = \WebSharks\JsMinifier\Core::compress($json))) {
            return '/*<![CDATA[*/'.$compressed_json.'/*]]>*/';
        }
        return $json;
    }
protected function compressInlineJsonCode ( $ json ) { if ( ! ( $ json = ( string ) $ json ) ) { return $ json ; // Nothing to do. } if ( ( $ compressed_json = \ WebSharks \ JsMinifier \ Core :: compress ( $ json ) ) ) { return '/*<![CDATA[*/' . $ compressed_json . '/*]]>*/' ; } return $ json ; }
Helper function; compress inline JSON code.

@since 150424 Adding support for JSON compression.

@param string $js   Raw JSON code.
@param mixed  $json

@return string JSON code (possibly minified).
Helper function ; compress inline JSON code .