static public function parse($str, $content_type)
    {
        switch ($content_type) {
            case 'json':
                return self::toJson($str);
            
            case 'xml':
                return self::toXml($str);

            default:
                return $str;
        }
    }