Exemplo n.º 1
0
        protected override Variable Evaluate(ParsingScript script)
        {
            List <Variable> args = script.GetFunctionArgs();

            Utils.CheckArgs(args.Count, 1, m_name);

            string json = args[0].AsString();

            Dictionary <int, int> d;

            json = Utils.ConvertToScript(json, out d);

            var      tempScript = script.GetTempScript(json);
            Variable result     = ExtractValue(tempScript);

            return(result);
        }