protected function cacheJsonDecode($value, $assoc = false)
    {
        if (!isset(static::$castCache[$value][$assoc])) {
            static::$castCache[$value][$assoc] = json_decode($value, $assoc);
        }

        return static::$castCache[$value][$assoc];
    }
protected function cacheJsonDecode($value, $assoc = false)
    {
        if (!isset(static::$castCache[$value][$assoc])) {
            static::$castCache[$value][$assoc] = json_decode($value, $assoc);
        }

        return static::$castCache[$value][$assoc];
    }
protected function cacheJsonDecode ( $ value , $ assoc = false ) { if ( ! isset ( static :: $ castCache [ $ value ] [ $ assoc ] ) ) { static :: $ castCache [ $ value ] [ $ assoc ] = json_decode ( $ value , $ assoc ) ; } return static :: $ castCache [ $ value ] [ $ assoc ] ; }
Cache json decode value

@param string $value
@param bool $assoc
@return mixed
Cache json decode value