public void JsonStartFunction(string functionName, int pos, string propertyName)
        {
            FunctionHolder holder = new FunctionHolder();

            holder.paramList    = new List <object>();
            holder.functionName = functionName;
            holder.propertyName = propertyName;
            objects.Push(holder);
        }
        public void JsonEndFunction(int pos)
        {
            FunctionHolder holder = (FunctionHolder)objects.Pop();

            // call the function handler !
            if (!functionNameToFunction.ContainsKey(holder.functionName))
            {
                throw new UnknownFunctionException("unknown function: \"" + holder.functionName + "\"");
            }
            Func <List <object>, object> f = functionNameToFunction[holder.functionName];
            object value = f(holder.paramList);

            objects.Peek().submitObjectToStack(holder.propertyName, value, setValueinObject, listener);
            //submitObjectToStack(objects.Peek(), holder.propertyName, value);
        }
 public void JsonStartFunction(string functionName, int pos, string propertyName)
 {
     FunctionHolder holder = new FunctionHolder();
     holder.paramList = new List<object>();
     holder.functionName = functionName;
     holder.propertyName = propertyName;
     objects.Push(holder);
 }