public function getJsonConfig($node = null)
    {
        $json = Json::decode($this->json_config);

        if (!$node) {
            return $json;
        }

        if (isset($json[$node])) {
            return $json[$node];
        }

        return [];
    }
public function getJsonConfig($node = null)
    {
        $json = Json::decode($this->json_config);

        if (!$node) {
            return $json;
        }

        if (isset($json[$node])) {
            return $json[$node];
        }

        return [];
    }
public function getJsonConfig ( $ node = null ) { $ json = Json :: decode ( $ this -> json_config ) ; if ( ! $ node ) { return $ json ; } if ( isset ( $ json [ $ node ] ) ) { return $ json [ $ node ] ; } return [ ] ; }
Get the json config as array.

@param string $node Get a given key from the config array.
@return array If the given node is not found an empty array will be returned.
Get the json config as array .