Can you help me to compose the following json response?

Dec 6, 2013 at 9:52 PM
{"id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "08000002", 4], "error": null}\n
prettified version
{
    "id": 1,
    "result": [
        [
            "mining.notify",
            "ae6812eb4cd7735a302a8a9dd95cf71f"
        ],
        "08000002",
        4
    ],
    "error": null
}
I tried the following code;
    class SubscribeResponse
    {
        [JsonProperty("")]
        public List<object> Data = new List<object>()
        {
            new List<string>()
            {
                "mining.notify",
                "ae6812eb4cd7735a302a8a9dd95cf71f"
            },
            "08000002",
            4
        };
    }
my json-method handler;
            [JsonRpcMethod("mining.subscribe")]
            private SubscribeResponse MiningSubscribe(string miner)
            {                
                var response = new SubscribeResponse();
                return response;
            }    
but it's quite not working;
{
    "jsonrpc": "2.0",
    "result": {
        "": [
            [
                "mining.notify",
                "ae6812eb4cd7735a302a8a9dd95cf71f"
            ],
            "08000002",
            4
        ]
    },
    "id": 0
}
Coordinator
Dec 6, 2013 at 10:23 PM
Should be something like:
[JsonRpcMethod("mining.subscribe")]
private object[] MiningSubscribe(string miner)
{
   var response = new object[]{
      new [] { "mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f" },
      "08000002", 4
   };
   return response;
}
Dec 6, 2013 at 10:30 PM
Thanks, i also managed to get it working;
    [JsonArray]
    public class SubscribeResponse:IEnumerable<object>
    {
        [JsonIgnore]   
        public string UniqueId { get; set; }

        [JsonIgnore]   
        public string ExtraNonce1 { get; set; }

        [JsonIgnore]   
        public int ExtraNonce2 { get; set; }

        public IEnumerator<object> GetEnumerator()
        {
            var data = new List<object>
            {
                new List<string>
                {
                    "mining.notify",
                    this.UniqueId
                },
                this.ExtraNonce1,
                this.ExtraNonce2
            };

            return data.GetEnumerator();
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return GetEnumerator();
        }
    }
Coordinator
Dec 7, 2013 at 12:47 AM
Very cool!

I never even considered inheriting from IEnumerable for that.